/* ===== ADMIN STYLES ===== */

/* Admin Login Page */
.admin-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
}

.admin-header h1 {
    color: white;
    margin: 0;
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Message Styles */
.message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Admin Dashboard */
body {
    background: #f8f9fa;
    font-family: 'Sarabun', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.admin-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.2rem;
}

.admin-header p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.admin-header a {
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.admin-header a:hover {
    background: rgba(255,255,255,0.3);
}

.admin-nav {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.admin-nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 2px solid transparent;
}

.admin-nav a:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

.admin-nav a.active {
    background: #3498db;
    color: white;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

/* Recent Contacts */
.recent-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.recent-section h2 {
    margin: 0 0 25px 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.contacts-table {
    width: 100%;
    border-collapse: collapse;
}

.contacts-table th,
.contacts-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.contacts-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.contacts-table tr:hover {
    background: #f8f9fa;
}

.no-data {
    text-align: center;
    color: #666;
    padding: 40px;
    font-style: italic;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.action-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.action-card:hover {
    transform: translateY(-3px);
    border-color: #3498db;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
}

.action-icon {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
}

.action-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.action-desc {
    color: #666;
    font-size: 0.9rem;
}
        
/* Responsive */
@media (max-width: 768px) {
    .admin-container {
        padding: 15px;
    }
    
    .admin-nav {
        flex-direction: column;
    }
    
    .admin-nav a {
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .contacts-table {
        font-size: 14px;
    }
    
    .contacts-table th,
    .contacts-table td {
        padding: 10px 5px;
    }
    
    .admin-table {
        font-size: 14px;
    }
}