/* Dashboard Specific Styles */

.dashboard-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.dashboard-header h2 {
    margin: 0;
    color: #2c3e50;
}

/* Stats Grid - Only apply when not in admin */
body:not(.admin-body) .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Only apply gradient cards when not in admin */
body:not(.admin-body) .stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

body:not(.admin-body) .stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

body:not(.admin-body) .stat-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body:not(.admin-body) .stat-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

body:not(.admin-body) .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

body:not(.admin-body) .stat-card h3 {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body:not(.admin-body) .stat-card .value {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

body:not(.admin-body) .stat-card p {
    margin-top: 0.5rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}

/* Quick Links */
.quick-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.quick-links .btn {
    padding: 12px 24px;
    font-size: 1rem;
}

/* Settings Form */
.settings-form {
    max-width: 800px;
}

.settings-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.settings-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.current-logo {
    margin-bottom: 15px;
}

.current-logo img {
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

.form-actions {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #eee;
}

/* Permissions Management */
.permissions-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.permissions-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-height: 600px;
    overflow-y: auto;
}

.permissions-sidebar h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-item {
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.user-item:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.user-item.active {
    border-color: #3498db;
    background: #e3f2fd;
}

.user-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.user-details {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.user-role {
    background: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
}

.user-location {
    color: #7f8c8d;
}

.permissions-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.user-header h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.user-info {
    color: #7f8c8d;
}

.admin-note {
    color: #e74c3c;
    font-weight: 600;
}

.permission-category {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.permission-category h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.permission-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.permission-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.permission-item:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.permission-item input[type="checkbox"] {
    margin-right: 1rem;
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.permission-name {
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
}

.permission-desc {
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-left: 1rem;
}

.no-selection {
    text-align: center;
    padding: 4rem 2rem;
    color: #7f8c8d;
}

.admin-info {
    padding: 2rem;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 6px;
    color: #856404;
}

/* Site Logo in Navbar */
.site-logo {
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
}

.user-role {
    background: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-left: 10px;
}

.logout-btn {
    background: #e74c3c !important;
}

.logout-btn:hover {
    background: #c0392b !important;
}

/* Responsive */
@media (max-width: 968px) {
    .permissions-container {
        grid-template-columns: 1fr;
    }
    
    .permissions-sidebar {
        max-height: none;
    }
}

/* Charts and Reports */
.chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}
