/* this is main.css */
/* AquaSense - Consolidated CSS */
/* All styles in one file for easier management */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, background 0.3s ease, box-shadow 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c5aa0;
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

/* AquaSense Logo Branding */
.brand {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.25rem;
    color: #ffffff;
}

.app-logo {
    height: 36px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
    object-fit: contain;
}

.brand-text {
    white-space: nowrap;
}

/* Navbar-specific logo and brand styling (for light background) */
.navbar .app-logo {
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.4))
            brightness(0.9)
            contrast(1.2);
}

.navbar .brand {
    background: rgba(255, 255, 255, 0.85);
    padding: 6px 12px;
    border-radius: 8px;
}

.navbar .brand-text {
    color: #1f3c88; /* Deep Aqua Blue */
    font-weight: 700;
}

.navbar .brand-text:hover {
    color: #15306b;
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
    .app-logo {
        height: 28px;
        margin-right: 8px;
    }
    
    .brand {
        font-size: 1.1rem;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-link:hover {
    color: #4a90e2;
}

.nav-link.active {
    color: #4a90e2;
    font-weight: 600;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-primary {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #4a90e2;
    padding: 0.75rem 1.5rem;
    border: 2px solid #4a90e2;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background: #4a90e2;
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c5aa0;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: #4a90e2;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c5aa0;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    color: white;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #4a90e2;
}

.footer-section p,
.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: #4a90e2;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    color: #bdc3c7;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    z-index: 1;
}

.close:hover {
    color: #000;
}

.modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    color: #333;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: #666;
}

.auth-form {
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4a90e2;
}

.form-options {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
}

.full-width {
    width: 100%;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: #666;
}

.btn-google {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-google:hover {
    border-color: #4a90e2;
    background: #f8f9fa;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid #eee;
}

.modal-footer p {
    color: #666;
}

.modal-footer a {
    color: #4a90e2;
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Dashboard Styles */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Admin Dashboard Styles */

/* Navigation Updates */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    font-weight: 500;
}

.user-profile i {
    font-size: 1.5rem;
    color: #e74c3c;
}

.btn-logout {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-logout:hover {
    background: #c0392b;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.overview-section,
.users-section,
.analytics-section,
.system-section {
    display: none;
    padding: 2rem 0;
}

.overview-section.active,
.users-section.active,
.analytics-section.active,
.system-section.active {
    display: block;
}

.page-title {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 2rem;
    text-align: center;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.stat-content h3 {
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.stat-change {
    font-size: 0.8rem;
    font-weight: 500;
}

.stat-change.positive {
    color: #27ae60;
}

.stat-change.negative {
    color: #e74c3c;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.chart-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.chart-card h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    text-align: center;
}

/* Activity Section */
.activity-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.activity-section h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.activity-item i {
    color: #4a90e2;
    font-size: 1.2rem;
}

.activity-content p {
    margin: 0;
    color: #333;
}

.activity-time {
    font-size: 0.8rem;
    color: #666;
}

/* Users Section */
.users-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #4a90e2;
}

.users-table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e1e5e9;
}

.users-table td {
    padding: 1rem;
    border-bottom: 1px solid #e1e5e9;
    color: #333;
}

.users-table tr:hover {
    background: #f8f9fa;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.btn-edit,
.btn-delete {
    padding: 0.25rem 0.75rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.btn-edit {
    background: #4a90e2;
    color: white;
}

.btn-edit:hover {
    background: #357abd;
}

.btn-delete {
    background: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background: #c0392b;
}

/* Analytics Section */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.analytics-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.analytics-card h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    text-align: center;
}

.engagement-stats,
.health-metrics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.engagement-item,
.health-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.engagement-item .label,
.health-item .label {
    color: #333;
    font-weight: 500;
}

.engagement-item .value,
.health-item .value {
    font-weight: bold;
    color: #2c5aa0;
}

.health-item .value.good {
    color: #27ae60;
}

.health-item .value.warning {
    color: #f39c12;
}

.health-item .value.danger {
    color: #e74c3c;
}

/* System Section */
.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.system-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.system-card h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.server-list,
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.server-item,
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.server-name,
.setting-label {
    color: #333;
    font-weight: 500;
}

.server-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.server-status.online {
    background: #d4edda;
    color: #155724;
}

.server-status.offline {
    background: #f8d7da;
    color: #721c24;
}

.setting-value {
    padding: 0.5rem;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    font-size: 0.9rem;
}

.setting-value:focus {
    outline: none;
    border-color: #4a90e2;
}

.maintenance-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-warning {
    background: #f39c12;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-warning:hover {
    background: #e67e22;
}

/* Modal Styles */
.user-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

.user-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-form label {
    font-weight: 500;
    color: #333;
}

.user-form input,
.user-form select {
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.user-form input:focus,
.user-form select:focus {
    outline: none;
    border-color: #4a90e2;
}

/* User Dashboard Styles moved to user-dashboard.css */

.dashboard-header {
    background: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.dashboard-title {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-align: center;
}

.dashboard-subtitle {
    color: #666;
    font-size: 1.1rem;
    text-align: center;
}

/* User Dashboard Stats Cards */
.dashboard-section .stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.dashboard-section .stat-card:hover {
    transform: translateY(-5px);
}

.dashboard-section .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.dashboard-section .stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.dashboard-section .stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.dashboard-section .stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.dashboard-section .stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.dashboard-section .stat-content h3 {
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.dashboard-section .stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.dashboard-section .stat-status {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.dashboard-section .stat-status.good {
    background: #d4edda;
    color: #155724;
}

.dashboard-section .stat-status.warning {
    background: #fff3cd;
    color: #856404;
}

.dashboard-section .stat-status.danger {
    background: #f8d7da;
    color: #721c24;
}

/* Charts Grid for User Dashboard */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.chart-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.chart-card h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    text-align: center;
}

/* Feeding Schedule */
.feeding-schedule {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feeding-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
}

.feeding-item .time {
    font-weight: 600;
    color: #333;
}

.feeding-item .status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.feeding-item .status.completed {
    background: #d4edda;
    color: #155724;
}

.feeding-item .status.pending {
    background: #fff3cd;
    color: #856404;
}

/* Monitoring Section */
.monitoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.monitor-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.monitor-card h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.sensor-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sensor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
}

.sensor-item i {
    color: #4a90e2;
    font-size: 1.2rem;
}

.sensor-item span:first-of-type {
    color: #333;
    font-weight: 500;
}

.sensor-value {
    font-weight: bold;
    color: #2c5aa0;
}

/* Alerts */
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
}

.alert-item.warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.alert-item.info {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
}

.alert-item i {
    font-size: 1.2rem;
}

.alert-item.warning i {
    color: #856404;
}

.alert-item.info i {
    color: #0c5460;
}

.alert-item p {
    margin: 0;
    color: #333;
}

/* Feeding Section */
.feeding-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.feeding-schedule-card,
.manual-feeding-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feeding-schedule-card h3,
.manual-feeding-card h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
}

.schedule-item .time {
    font-weight: 600;
    color: #333;
}

.schedule-item .amount {
    color: #666;
    font-size: 0.9rem;
}

.schedule-item .status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.schedule-item .status.completed {
    background: #d4edda;
    color: #155724;
}

.schedule-item .status.pending {
    background: #fff3cd;
    color: #856404;
}

/* Feeding Form */
.feeding-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feeding-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feeding-form label {
    font-weight: 500;
    color: #333;
}

.feeding-form input,
.feeding-form textarea {
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.feeding-form input:focus,
.feeding-form textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

.feeding-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Reports Section */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.report-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.report-card h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    text-align: center;
}

.report-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.report-content p {
    margin: 0;
    color: #333;
}

.report-content strong {
    color: #2c5aa0;
}

/* Mortality Log */
.mortality-log {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mortality-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.mortality-item .date {
    color: #333;
    font-weight: 500;
}

.mortality-item .count {
    color: #e74c3c;
    font-weight: bold;
}

.mortality-item .reason {
    color: #666;
    font-size: 0.9rem;
}

.dashboard-section,
.monitoring-section,
.feeding-section,
.reports-section,
.overview-section,
.user-management-section,
.system-section {
    display: none;
    padding: 0 0 2rem 0;
    min-height: calc(100vh - 80px);
}

.dashboard-section.active,
.monitoring-section.active,
.feeding-section.active,
.reports-section.active,
.overview-section.active,
.user-management-section.active,
.system-section.active {
    display: block;
}

/* Dashboard Header */
.dashboard-header {
    background: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-title {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.dashboard-subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* Dashboard Cards with Original Styling */
.dashboard-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 144, 226, 0.1);
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.card-icon {
    font-size: 2.5rem;
    color: #4a90e2;
    margin-right: 1rem;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 1rem;
    border-radius: 15px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5aa0;
    margin: 0;
}

/* Sensor Grid with Better Styling */
.sensor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sensor-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sensor-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.sensor-item:hover::before {
    transform: scale(1);
}

.sensor-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.sensor-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.sensor-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sensor-unit {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Feeding Schedule with Enhanced Styling */
.feeding-list {
    display: grid;
    gap: 1rem;
}

.feeding-item,
.schedule-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid #4a90e2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feeding-item:hover,
.schedule-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.feeding-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.feeding-time {
    font-weight: 700;
    color: #2c5aa0;
    font-size: 1.1rem;
}

.feeding-amount {
    color: #666;
    font-size: 0.9rem;
}

/* Status Badges with Better Design */
.status {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.status.pending {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.status.in-progress {
    background: linear-gradient(135deg, #d1ecf1, #74b9ff);
    color: #0c5460;
}

.status.completed {
    background: linear-gradient(135deg, #d4edda, #00b894);
    color: #155724;
}

/* Tables with Enhanced Styling */
.table-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 1.5rem 1rem;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #f8f9fa;
    color: #333;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fa, #e3f2fd);
    transform: scale(1.01);
}

/* Stats Cards with Gradient Backgrounds */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 3.5rem;
    color: #4a90e2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 1.5rem;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #666;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Activity Section with Enhanced Design */
.activity-section {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.activity-section h3 {
    color: #2c5aa0;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-section h3::before {
    content: '📊';
    font-size: 1.2rem;
}

.activity-list {
    display: grid;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e3f2fd);
    border-radius: 15px;
    border-left: 5px solid #4a90e2;
    transition: all 0.3s ease;
}

.activity-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.activity-item i {
    font-size: 1.8rem;
    color: #4a90e2;
    margin-right: 1rem;
    background: white;
    padding: 0.75rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-content p {
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #333;
}

.activity-time {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

/* User Profile and Auth */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    font-weight: 500;
}

.user-profile i {
    font-size: 1.5rem;
    color: #4a90e2;
}

.btn-logout {
    background: #f44336;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-logout:hover {
    background: #d32f2f;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 2rem;
    color: #4a90e2;
    margin-right: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

/* Sensor Values */
.sensor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.sensor-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #4a90e2;
}

.sensor-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sensor-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5aa0;
}

/* Feeding Schedule */
.feeding-list {
    display: grid;
    gap: 1rem;
}

.feeding-item,
.schedule-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #4a90e2;
}

.feeding-info {
    display: flex;
    flex-direction: column;
}

.feeding-time {
    font-weight: 600;
    color: #333;
}

.feeding-amount {
    color: #666;
    font-size: 0.9rem;
}

.status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status.pending {
    background: #fff3cd;
    color: #856404;
}

.status.in-progress {
    background: #d1ecf1;
    color: #0c5460;
}

.status.completed {
    background: #d4edda;
    color: #155724;
}

/* Tables */
.table-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* Search and Filter */
.search-box {
    position: relative;
    margin-bottom: 1rem;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.btn-filter {
    padding: 0.5rem 1rem;
    border: 2px solid #e1e5e9;
    background: white;
    color: #666;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-filter.active,
.btn-filter:hover {
    border-color: #4a90e2;
    background: #4a90e2;
    color: white;
}

/* Role Badges */
.role-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-badge.user {
    background-color: #e3f2fd;
    color: #1976d2;
}

.role-badge.admin {
    background-color: #fff3e0;
    color: #f57c00;
}

.role-badge.superadmin {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

/* Action Buttons */
.btn-promote, .btn-demote, .btn-delete {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    margin-right: 0.25rem;
    transition: all 0.2s ease;
}

.btn-promote {
    background-color: #4caf50;
    color: white;
}

.btn-promote:hover {
    background-color: #45a049;
}

.btn-demote {
    background-color: #ff9800;
    color: white;
}

.btn-demote:hover {
    background-color: #f57c00;
}

.btn-delete {
    background-color: #f44336;
    color: white;
}

.btn-delete:hover {
    background-color: #da190b;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 3rem;
    color: #4a90e2;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 1.1rem;
}

/* Activity Section */
.activity-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.activity-list {
    display: grid;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
}

.activity-item i {
    font-size: 1.5rem;
    color: #4a90e2;
    margin-right: 1rem;
}

.activity-content p {
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.activity-time {
    font-size: 0.8rem;
    color: #666;
}

/* System Cards */
.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.system-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.system-card h3 {
    margin-bottom: 1rem;
    color: #2c5aa0;
}

.status-list {
    display: grid;
    gap: 0.5rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e1e5e9;
}

.status-label {
    color: #666;
}

.status-value {
    font-weight: 600;
}

.status-value.online {
    color: #4caf50;
}

.status-value.offline {
    color: #f44336;
}

/* No Data State */
.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .sensor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-height: 95vh;
    }
    
    .auth-form {
        padding: 1.5rem;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .btn-filter {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Admin Dashboard Responsive */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .users-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .system-grid {
        grid-template-columns: 1fr;
    }
    
    .users-table {
        font-size: 0.8rem;
    }
    
    .users-table th,
    .users-table td {
        padding: 0.5rem;
    }
    
    /* User Dashboard Responsive */
    .feeding-controls {
        grid-template-columns: 1fr;
    }
    
    .monitoring-grid {
        grid-template-columns: 1fr;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    /* Two-Column Layout Responsive */
    .dashboard-layout {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .sidebar-nav .nav-link {
        flex: 1;
        min-width: 120px;
        padding: 0.75rem 1rem;
        border-left: none;
        border-bottom: 3px solid transparent;
        justify-content: center;
    }
    
    .sidebar-nav .nav-link.active {
        border-left: none;
        border-bottom-color: #4a90e2;
    }
    
    .sidebar-nav .nav-link:hover {
        border-left: none;
        border-bottom-color: #4a90e2;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .sensor-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-card {
        padding: 1.5rem;
    }
    
    .system-grid {
        grid-template-columns: 1fr;
    }
    
    /* Two-Column Layout Mobile */
    .dashboard-sidebar {
        width: 100%;
    }
    
    .sidebar-header {
        padding: 1.5rem 1rem;
    }
    
    .sidebar-user {
        padding: 1rem;
    }
    
    .sidebar-nav {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .sidebar-nav .nav-link {
        min-width: 100%;
        border-left: 4px solid transparent;
        border-bottom: none;
        justify-content: flex-start;
    }
    
    .sidebar-nav .nav-link.active {
        border-left-color: #4a90e2;
        border-bottom: none;
    }
    
    .sidebar-nav .nav-link:hover {
        border-left-color: #4a90e2;
        border-bottom: none;
    }
    
    .main-content .container {
        padding: 1.5rem 1rem !important;
    }
}

/* Enhanced Landing Page Styles */

/* Navigation Updates */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-auth {
    display: flex;
    gap: 1rem;
}

.btn-login, .btn-signup {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login {
    background: transparent;
    color: #4a90e2;
    border: 2px solid #4a90e2;
}

.btn-login:hover {
    background: #4a90e2;
    color: white;
}

.btn-signup {
    background: #4a90e2;
    color: white;
}

.btn-signup:hover {
    background: #357abd;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    align-items: flex-start;
    padding-top: 100px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="water" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23water)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #ffd700;
    color: #333;
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #4a90e2;
    transform: translateY(-3px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.water-animation {
    position: relative;
    width: 300px;
    height: 300px;
}

.water-drop {
    position: absolute;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.6);
    animation: float 3s ease-in-out infinite;
}

.water-drop:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.water-drop:nth-child(2) {
    top: 50%;
    right: 20%;
    animation-delay: 1s;
}

.water-drop:nth-child(3) {
    bottom: 20%;
    left: 50%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2rem;
    color: #4a90e2;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #666;
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.water-visualization {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.water-visualization i {
    font-size: 4rem;
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background: white;
    color: #4a90e2;
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-right: 0.5rem;
    color: #4a90e2;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #4a90e2;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #4a90e2;
}

.footer-section ul li i {
    margin-right: 0.5rem;
    color: #4a90e2;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

/* Enhanced Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    z-index: 1;
}

.close:hover {
    color: #333;
}

.modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    color: #333;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: #666;
}

.auth-form {
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4a90e2;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.checkbox-label input {
    margin-right: 0.5rem;
}

.forgot-password {
    color: #4a90e2;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.full-width {
    width: 100%;
    margin-bottom: 1rem;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: #999;
}

.btn-google {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-google:hover {
    border-color: #4a90e2;
    background: #f8f9fa;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid #eee;
}

.modal-footer p {
    color: #666;
}

.modal-footer a {
    color: #4a90e2;
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .stats {
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .auth-form {
        padding: 1.5rem;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
}

/* Utility classes */
.text-muted {
    color: #6c757d;
    font-style: italic;
    font-size: 0.9rem;
}

/* Confirmation Modal Styles */
.confirmation-modal {
    z-index: 3000; /* Higher than regular modals */
}

.confirmation-modal-content {
    max-width: 450px;
    margin: 10% auto;
    padding: 0;
    animation: modalSlideIn 0.3s ease;
}

.confirmation-modal-header {
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
}

.confirmation-icon {
    display: block;
    margin: 0 auto 1rem;
    font-size: 3rem;
    line-height: 1;
}

.confirmation-title {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
}

.confirmation-message {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.confirmation-modal-actions {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    border-top: 1px solid #eee;
}

.btn-confirm-cancel,
.btn-confirm-warning,
.btn-confirm-danger,
.btn-confirm-info {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.btn-confirm-cancel {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #ddd;
}

.btn-confirm-cancel:hover {
    background: #e8e8e8;
    border-color: #bbb;
    transform: translateY(-1px);
}

.btn-confirm-cancel:active {
    transform: translateY(0);
}

.btn-confirm-warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.btn-confirm-warning:hover {
    background: linear-gradient(135deg, #f57c00, #e65100);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
    transform: translateY(-1px);
}

.btn-confirm-warning:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
}

.btn-confirm-danger {
    background: linear-gradient(135deg, #f44336, #da190b);
    color: white;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.btn-confirm-danger:hover {
    background: linear-gradient(135deg, #da190b, #b71c1c);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
    transform: translateY(-1px);
}

.btn-confirm-danger:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(244, 67, 54, 0.3);
}

.btn-confirm-info {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.btn-confirm-info:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
    transform: translateY(-1px);
}

.btn-confirm-info:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

/* Focus styles for accessibility */
.btn-confirm-cancel:focus,
.btn-confirm-warning:focus,
.btn-confirm-danger:focus,
.btn-confirm-info:focus {
    outline: 3px solid rgba(74, 144, 226, 0.5);
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .confirmation-modal-content {
        margin: 5% auto;
        width: 95%;
    }
    
    .confirmation-modal-header {
        padding: 2rem 1.5rem 1rem;
    }
    
    .confirmation-title {
        font-size: 1.25rem;
    }
    
    .confirmation-message {
        font-size: 0.95rem;
    }
    
    .confirmation-modal-actions {
        padding: 1rem 1.5rem 1.5rem;
        flex-direction: column-reverse;
    }
    
    .btn-confirm-cancel,
    .btn-confirm-warning,
    .btn-confirm-danger,
    .btn-confirm-info {
        width: 100%;
    }
}
