/* Clean Air Nepal - Modern CSS Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
}

.header-content {
    width: 100%;
    margin: 0 auto;
    padding: 0.6rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.15rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: fit-content;
    flex-shrink: 0;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    padding: 0;
    flex: 1;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    white-space: nowrap;
}

.nav-icon {
    font-size: 16px;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-button {
    background: transparent;
    border: none;
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    white-space: nowrap;
}

.nav-dropdown-button:hover {
    background-color: rgba(255,255,255,0.2);
}

.nav-dropdown-button.active {
    background-color: rgba(255,255,255,0.2);
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

.nav-dropdown-button.active .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
    color: #333;
}

.nav-dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item .menu-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.dropdown-item .dropdown-text {
    color: #333 !important;
    font-size: 14px;
    white-space: nowrap;
    display: inline-block;
    line-height: 1.5;
    font-weight: 400;
}

.dropdown-item span:not(.menu-icon):not(.dropdown-text) {
    color: #333 !important;
    font-size: 14px;
    white-space: nowrap;
    display: inline-block;
    line-height: 1.5;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    flex-shrink: 0;
}

/* Notification Bell */
.notification-bell {
    position: relative;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.notification-bell:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.bell-icon {
    font-size: 1.25rem;
    display: block;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid #667eea;
}

.notification-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 350px;
    max-width: 400px;
    max-height: 500px;
    z-index: 1000;
    overflow: hidden;
}

.notification-dropdown.show {
    display: block;
}

.notification-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
}

.notification-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.notification-content strong {
    color: #333;
    font-size: 0.95rem;
}

.notification-content p {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
}

.notification-content small {
    color: #999;
    font-size: 0.75rem;
}

.user-menu {
    position: relative;
}

.user-menu-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    transition: background-color 0.3s;
}

.user-menu-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.user-name {
    font-weight: 500;
}

.user-role {
    font-size: 12px;
    opacity: 0.9;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.menu-arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

.user-menu-button.active .menu-arrow {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
}

.user-menu-dropdown.show {
    display: block;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background-color: #f8f9fa;
}

.menu-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.main-nav a:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Container */
.container {
    max-width: 1320px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Dashboard Header */
.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2.1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    height: 120px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: width 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

a .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.stat-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.stat-card-primary {
    border-left: 4px solid #667eea;
}

.stat-card-primary::before {
    background: #667eea;
}

.stat-card-success {
    border-left: 4px solid #51cf66;
}

.stat-card-success::before {
    background: #51cf66;
}

.stat-card-info {
    border-left: 4px solid #339af0;
}

.stat-card-info::before {
    background: #339af0;
}

.stat-card-warning {
    border-left: 4px solid #ffc107;
}

.stat-card-warning::before {
    background: #ffc107;
}

.stat-card-danger {
    border-left: 4px solid #ff6b6b;
}

.stat-card-danger::before {
    background: #ff6b6b;
}

.stat-icon {
    font-size: 2.5rem;
    line-height: 1;
    opacity: 0.8;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    flex: 1;
}

.stat-card h3 {
    color: #666;
    font-size: 0.8rem;
    margin: 0 0 0.4rem 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: bold;
    color: #333;
    line-height: 1.1;
    margin: 0;
}

.stat-card-primary .stat-number {
    color: #667eea;
}

.stat-card-success .stat-number {
    color: #51cf66;
}

.stat-card-info .stat-number {
    color: #339af0;
}

.stat-card-warning .stat-number {
    color: #ffc107;
}

.stat-card-danger .stat-number {
    color: #ff6b6b;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #667eea;
    color: white;
}

.btn-primary:hover {
    background-color: #5568d3;
}

.btn-success {
    background-color: #51cf66;
    color: white;
}

.btn-success:hover {
    background-color: #40c057;
}

.btn-info {
    background-color: #339af0;
    color: white;
}

.btn-info:hover {
    background-color: #228be6;
}

.btn-danger {
    background-color: #ff6b6b;
    color: white;
}

.btn-danger:hover {
    background-color: #fa5252;
}

/* Forms */
.form-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Tables */
.table-container {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #555;
}

table tr:hover {
    background-color: #f8f9fa;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Quick Actions */
.quick-actions {
    margin-top: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.quick-actions h2 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.action-icon {
    font-size: 1.5rem;
}

.action-text {
    font-weight: 500;
}

.action-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.action-btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3d91 100%);
}

.action-btn-success {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    color: white;
}

.action-btn-success:hover {
    background: linear-gradient(135deg, #40c057 0%, #37b24d 100%);
}

.action-btn-info {
    background: linear-gradient(135deg, #339af0 0%, #228be6 100%);
    color: white;
}

.action-btn-info:hover {
    background: linear-gradient(135deg, #228be6 0%, #1c7ed6 100%);
}

/* Footer */
.main-footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
}

/* Page Headers */
h1 {
    color: #333;
    margin-bottom: 1rem;
}

h2 {
    color: #555;
    margin: 1.5rem 0 1rem 0;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-primary {
    background-color: #e2e7ff;
    color: #243b80;
}

.badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-secondary {
    background-color: #e2e3e5;
    color: #383d41;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 2rem;
    }
    
    .logo {
        justify-self: center;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.25rem;
    }
    
    .user-info {
        justify-self: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

/* Icon Buttons */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    background: transparent;
}

.btn-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.btn-icon-primary {
    background-color: #667eea;
    color: white;
}

.btn-icon-primary:hover {
    background-color: #5568d3;
}

.btn-icon-success {
    background-color: #28a745;
    color: white;
}

.btn-icon-success:hover {
    background-color: #218838;
}

.btn-icon-info {
    background-color: #17a2b8;
    color: white;
}

.btn-icon-info:hover {
    background-color: #138496;
}

.btn-icon-danger {
    background-color: #dc3545;
    color: white;
}

.btn-icon-danger:hover {
    background-color: #c82333;
}

