/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #8B4513 0%, #FAF0E6 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

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

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #8B4513 0%, #FAF0E6 100%);
    color: #333;
    padding: 30px 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
    text-align: center;
    border-bottom: 2px solid #8B4513;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sidebar .logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 5px;
}

.sidebar ul li a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 15px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background: linear-gradient(90deg, #D2691E 0%, #A0522D 100%);
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(210, 105, 30, 0.3);
}

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

.main-content.logged-out {
    margin-left: 0;
}

/* Header */
.header {
    background: linear-gradient(135deg, #8B4513 0%, #FAF0E6 100%);
    color: #333;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.header::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%);
    animation: pulse 4s ease-in-out infinite;
}

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

.header h1 {
    margin-bottom: 10px;
    font-size: 2.5em;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.header .btn {
    position: relative;
    z-index: 2;
}

/* Stats Container */
.stats-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-container h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.8em;
    font-weight: 600;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stats-table th {
    background: linear-gradient(135deg, #8B4513 0%, #FAF0E6 100%);
    color: #333;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1em;
    border-bottom: 2px solid #8B4513;
}

.stats-table td {
    padding: 15px;
    border-bottom: 1px solid #e1e8ed;
    background: rgba(255, 255, 255, 0.8);
}

.stats-table td:nth-child(2) {
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    color: #8B4513;
}

.stats-table tr:nth-child(even) td {
    background: rgba(139, 69, 19, 0.05);
}

.stats-table tr:hover td {
    background: #FAF0E6;
    transition: background-color 0.3s ease;
}

/* Forms */
.form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-container h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.8em;
    font-weight: 600;
}

form {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-top: 20px;
    font-weight: 600;
    color: #34495e;
    font-size: 1em;
}

input[type="text"],
input[type="password"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 15px;
    margin-top: 8px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
    background: white;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

button {
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

/* Tables */
.table-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.table-container h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.8em;
    font-weight: 600;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
    border: 1px solid #8B4513;
    border-bottom: 1px solid #e1e8ed;
}

th {
    background: linear-gradient(135deg, #8B4513 0%, #FAF0E6 100%);
    color: #333;
    font-weight: 600;
    font-size: 1em;
}

tr:nth-child(even) {
    background: rgba(139, 69, 19, 0.05);
}

tr:hover {
    background: #FAF0E6;
    transition: background-color 0.3s ease;
}

/* Links */
a {
    color: #8B4513;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #654321;
    text-decoration: underline;
}

/* Buttons as links */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn-success:hover {
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

/* Alerts */
.alert {
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 500;
}

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

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Login Container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 30px;
}

.login-container .form-container {
    width: 350px;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    margin: 0 auto;
}

.login-container h2 {
    margin: 10px 0;
    font-size: 1.5em;
}

.login-container p {
    margin: 10px 0;
    font-size: 1em;
}

.login-container .btn {
    margin-top: 20px;
}

/* Landing Page Styles */
.landing-nav {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    gap: 10px;
}

.hero-section {
    text-align: center;
    background: linear-gradient(135deg, #8B4513 0%, #FAF0E6 100%);
    color: #333;
    padding: 80px 30px;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.hero-section::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%);
    animation: pulse 4s ease-in-out infinite;
}

.hero-section h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 1.3em;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.hero-section .btn {
    position: relative;
    z-index: 2;
    font-size: 1.2em;
    padding: 15px 40px;
}

.btn-primary {
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #8B4513;
    border: 2px solid #8B4513;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
}

.btn-secondary:hover {
    background: #8B4513;
    color: white;
}

/* Hero Section Enhancements */
.hero-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 5px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.5em;
    font-weight: 300;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

/* Quick Stats */
.quick-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 3em;
    font-weight: 700;
    color: #8B4513;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1em;
    color: #2c3e50;
    font-weight: 600;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

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

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

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
}

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

/* Steps */
.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: calc(50% - 10px);
    min-width: 300px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.step-content p {
    color: #555;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 20px;
    }

    .sidebar h2 {
        font-size: 20px;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .header h1 {
        font-size: 2em;
    }

    .form-container,
    .table-container,
    .stats-container {
        padding: 20px;
    }

    table,
    .stats-table {
        font-size: 14px;
    }

    th, td,
    .stats-table th, .stats-table td {
        padding: 10px;
    }
}
