/* css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f4f7fc;
    color: #1f3a4e;
    line-height: 1.6;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    margin: 20px;
}

.auth-left {
    flex: 1;
    background: linear-gradient(135deg, #1e6a9c, #0d4f7a);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.auth-left h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.auth-left p {
    font-size: 1.1rem;
    opacity: 0.9;
}

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

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.auth-right {
    flex: 1;
    padding: 3rem;
}

.auth-form-container {
    max-width: 400px;
    margin: 0 auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    color: #0d3f62;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #527a9f;
}

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

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

.form-group label i {
    margin-right: 0.5rem;
    color: #2c7eb0;
    width: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #dde6f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #2c7eb0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(44,126,176,0.1);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #527a9f;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.forgot-link {
    color: #2c7eb0;
    text-decoration: none;
    font-size: 0.9rem;
}

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

.btn-auth {
    width: 100%;
    padding: 1rem;
    background: #1e6a9c;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-auth:hover {
    background: #0d4f7a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30,106,156,0.3);
}

.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.demo-credentials {
    margin-top: 1rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 5px;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
}

.auth-footer a {
    color: #2c7eb0;
    text-decoration: none;
}

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

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: #1e6a9c;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.sidebar-header p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.sidebar-nav a i {
    width: 24px;
    font-size: 1.2rem;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.user-role {
    font-size: 0.8rem;
    opacity: 0.7;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.2);
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.content-header h1 {
    font-size: 2rem;
    color: #0d3f62;
}

.date-display {
    color: #527a9f;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e8f2fc;
}

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

.stat-content h3 {
    font-size: 1.8rem;
    color: #0d3f62;
    margin-bottom: 0.2rem;
}

.stat-content p {
    color: #527a9f;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.stat-content small {
    color: #7f8c8d;
    font-size: 0.8rem;
}

.recent-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    color: #0d3f62;
    font-size: 1.3rem;
}

.view-all {
    color: #2c7eb0;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.view-all:hover {
    text-decoration: underline;
}

.table-responsive {
    overflow-x: auto;
}

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

.data-table th {
    text-align: left;
    padding: 1rem;
    background: #f8faff;
    color: #1e5375;
    font-weight: 600;
    border-bottom: 2px solid #e8f2fc;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #e8f2fc;
    color: #1f3a4e;
}

.data-table tr:hover td {
    background: #f8faff;
}

.no-data {
    text-align: center;
    color: #7f8c8d;
    padding: 2rem !important;
}

.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-planned {
    background: #e8f2fc;
    color: #2c7eb0;
}

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

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

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #1e6a9c;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #0d4f7a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30,106,156,0.3);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: #527a9f;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: #e8f2fc;
    color: #1e6a9c;
}

.category-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

/* Landing Page */
.landing-page {
    background: white;
}

.landing-nav {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h2 {
    color: #1e6a9c;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #1f3a4e;
    font-weight: 500;
}

.nav-links a:hover {
    color: #1e6a9c;
}

.btn-outline {
    padding: 0.5rem 1.5rem;
    border: 2px solid #1e6a9c;
    border-radius: 8px;
    color: #1e6a9c !important;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #1e6a9c;
    color: white !important;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.landing-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.header-content {
    flex: 1;
}

.header-content h1 {
    font-size: 3rem;
    color: #0d3f62;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.header-content p {
    font-size: 1.2rem;
    color: #527a9f;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.header-image {
    flex: 1;
}

.header-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    color: #0d3f62;
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: #1e6a9c;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #0d3f62;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: #527a9f;
    font-size: 0.95rem;
    line-height: 1.6;
}

footer {
    text-align: center;
    padding: 2rem;
    background: #f8faff;
    color: #527a9f;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .landing-header {
        flex-direction: column;
        text-align: center;
    }
    
    .header-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 0;
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-container {
        flex-direction: column;
        margin: 10px;
    }
    
    .auth-left {
        padding: 2rem;
        text-align: center;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}