/* Dashboard Layout */
body {
    background-color: #f4f6f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
}

.dashboard-container {
    display: flex;
    min-height: calc(100vh - 80px); /* Adjust based on header height */
    margin-top: 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

/* Sidebar */
.dashboard-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.03);
    margin-right: 25px;
    padding: 25px 0;
    align-self: flex-start;
    position: sticky;
    top: 140px; /* Increased from 100px to 160px */
}

.user-profile {
    text-align: center;
    padding: 0 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #f8f9fa;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #305DD5;
    font-size: 28px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.user-name {
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    font-size: 16px;
}

.sidebar-menu {
    list-style: none;
    padding: 0 15px;
    margin: 0;
}

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

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    border-radius: 8px;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background: #eef2ff;
    color: #305DD5;
}

.sidebar-menu i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 18px;
}

/* Main Content */
.dashboard-content {
    flex-grow: 1;
    min-width: 0;
    margin-top: 120px; /* Increased margin to 120px */
}

/* Stats Cards */
.stat-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    margin-bottom: 25px;
    background: #fff;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.stat-card .card-body {
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
}

.bg-blue { background: linear-gradient(135deg, #305DD5, #6a8ee6); box-shadow: 0 4px 10px rgba(48, 93, 213, 0.3); }
.bg-green { background: linear-gradient(135deg, #28a745, #5dd879); box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3); }
.bg-purple { background: linear-gradient(135deg, #6f42c1, #a67fec); box-shadow: 0 4px 10px rgba(111, 66, 193, 0.3); }
.bg-orange { background: linear-gradient(135deg, #fd7e14, #ffaa64); box-shadow: 0 4px 10px rgba(253, 126, 20, 0.3); }

.stat-info h5 {
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-info .value {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

/* Content Card */
.content-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0,0,0,0.03);
    padding: 30px;
    margin-bottom: 30px;
    border: none;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.content-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* Table Styling */
.custom-table {
    width: 100%;
    margin-bottom: 0;
}

.custom-table thead th {
    border-top: none;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
    color: #555;
    background: #fafafa;
    padding: 15px;
    font-size: 14px;
}

.custom-table td {
    vertical-align: middle;
    padding: 16px 15px;
    border-top: 1px solid #f5f5f5;
    color: #444;
    font-size: 14px;
}

.custom-table tbody tr:hover {
    background-color: #fcfcfc;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-success { background-color: #e6fffa; color: #00b894; }
.status-warning { background-color: #fffaf0; color: #ed8936; }
.status-secondary { background-color: #f1f3f5; color: #868e96; }

/* Buttons */
.btn-action {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, #305DD5, #5c7cdd);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(48, 93, 213, 0.2);
}

.btn-primary-gradient:hover {
    box-shadow: 0 6px 20px rgba(48, 93, 213, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

.app-icon-sm {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Auth Pages (Login/Register) */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #f4f6f9;
    padding: 140px 20px 40px;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    display: flex;
    min-height: 600px;
}

.auth-sidebar {
    width: 50%;
    background: linear-gradient(135deg, #305DD5, #5c7cdd);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.auth-sidebar h3 {
    color: #fff !important;
}

.auth-sidebar::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.auth-sidebar::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.auth-content {
    width: 50%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.auth-subtitle {
    color: #888;
    margin-bottom: 30px;
}

.form-control-lg {
    height: 50px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding-left: 20px;
}

.form-control-lg:focus {
    border-color: #305DD5;
    box-shadow: 0 0 0 3px rgba(48, 93, 213, 0.1);
}

/* Responsive */
@media (max-width: 991px) {
    .dashboard-container {
        flex-direction: column;
    }
    .dashboard-sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
        position: static;
    }
    .auth-card {
        flex-direction: column;
        max-width: 500px;
    }
    .auth-sidebar {
        width: 100%;
        min-height: 200px;
        padding: 30px;
    }
    .auth-content {
        width: 100%;
        padding: 30px;
    }
}

/* Landing Page Enhancements */
.hero-section {
    padding: 120px 0 100px;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-desc {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.feature-card {
    padding: 40px 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s;
    height: 100%;
    text-align: center;
    border: 1px solid #f5f5f5;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: transparent;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f4ff;
    color: #305DD5;
    font-size: 36px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

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

/* Utility & Animations */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.transition-transform {
    transition: transform 0.5s ease;
}

.hover-lift:hover .transition-transform {
    transform: scale(1.05);
}

.object-fit-cover {
    object-fit: cover;
}

/* Color Overrides */
.text-primary {
    color: #305DD5 !important;
}

.btn-primary {
    background-color: #305DD5;
    border-color: #305DD5;
}

.btn-outline-primary {
    color: #305DD5;
    border-color: #305DD5;
}

.btn-outline-primary:hover {
    background-color: #305DD5;
    border-color: #305DD5;
}
