/* Genel Stil */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

:root {
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --danger-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Header */
.header {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    width: 100%;
    margin: 0;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-color);
}

.header-logo img {
    height: 45px;
    width: auto;
}

.header-title {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: var(--text-color) !important;
    margin-left: 0.5rem;
    line-height: 1.5;
    white-space: nowrap;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    color: var(--text-color);
}

.user-dropdown-toggle #userPhoto {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.user-dropdown-toggle #userIcon {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.user-dropdown-toggle:hover {
    background: var(--border-color);
}

.user-dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.user-dropdown.open .user-dropdown-toggle i:last-child {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.user-dropdown.open .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu a,
.user-dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    color: var(--text-color);
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}

.user-dropdown-menu a:hover,
.user-dropdown-menu button:hover {
    background: var(--bg-color);
}

.user-dropdown-menu .logout-btn {
    color: var(--danger-color);
}

.user-dropdown-menu .logout-btn:hover {
    background: #fee2e2;
}

.user-name {
    font-weight: 500;
    color: var(--text-color);
}

/* Admin Button */
.btn-admin {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-admin:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
}

.btn-admin i {
    font-size: 0.875rem;
}

.btn-logout {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.btn-logout:hover {
    background: var(--primary-dark);
}

/* Layout */
.container {
    display: flex;
    min-height: auto;
    width: 100%;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    align-items: flex-start;
    margin: 0;
    padding: 0;
}

/* Sidebar */
.sidebar {
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    padding: 2rem 0;
    position: relative !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
    overflow-x: hidden;
    transition: all 0.3s ease;
    flex-shrink: 0;
    align-self: flex-start;
    z-index: 10;
    margin: 0;
    top: auto !important;
}

/* Force sidebar to scroll with page - override any other rules */
aside.sidebar,
#sidebar,
.sidebar:not(.open):not(.closed),
.sidebar.closed,
.sidebar.open {
    position: relative !important;
    height: auto !important;
    max-height: none !important;
    top: auto !important;
}

/* Mobile: only fixed when explicitly open */
@media (max-width: 768px) {
    .sidebar.open {
        position: fixed !important;
        height: calc(100vh - 80px) !important;
    }
    
    .sidebar:not(.open) {
        position: relative !important;
        height: auto !important;
    }
}

.sidebar.closed {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    width: 0;
    min-width: 0;
    max-width: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.sidebar-toggle {
    position: fixed;
    left: 1rem;
    top: 90px;
    z-index: 1000;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background 0.2s, transform 0.2s;
}

.sidebar-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.sidebar-toggle i {
    font-size: 1.25rem;
}

.sidebar.closed ~ .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    flex: 1 1 100% !important;
    max-width: 100% !important;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 80px;
        z-index: 999;
        height: calc(100vh - 80px);
        transform: translateX(-100%);
        width: 280px;
        min-width: 280px;
        max-width: 280px;
    }
    
    .sidebar.open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
        width: 280px;
        min-width: 280px;
        max-width: 280px;
        position: fixed;
        top: 80px;
        height: calc(100vh - 80px);
        max-height: calc(100vh - 80px);
        z-index: 999;
    }
    
    .sidebar.closed {
        transform: translateX(-100%);
        width: 0;
        min-width: 0;
        max-width: 0;
    }
    
    .sidebar.closed ~ .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .main-content {
        padding: 12px !important;
    }
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav ul li {
    margin-bottom: 0.5rem;
}

.sidebar nav ul li a {
    display: block;
    padding: 0.75rem 2rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar nav ul li a:hover {
    background: var(--bg-color);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.sidebar nav ul li a.active {
    background: var(--bg-color);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

/* Sidebar Content */
.sidebar-content {
    padding: 1rem 0;
}

.filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    color: var(--text-color);
    text-align: left;
    width: 100%;
}

.filter-btn:hover {
    background: var(--card-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
}

.filter-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.sidebar nav ul li.admin-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.sidebar nav ul li.admin-section a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1 1 auto;
    padding: 0 !important;
    width: 100%;
    min-width: 0;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.sidebar.closed ~ .main-content {
    width: 100%;
    flex: 1 1 100%;
    margin-left: 0;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-light);
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card-item {
    background: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.card-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.card-item p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.card-item .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-light);
}

.card-item .btn-download {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}

.card-item .btn-download:hover {
    background: var(--primary-dark);
}

/* Quick Access Cards */
.quick-access {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.quick-card {
    background: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
}

.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.quick-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.quick-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.quick-card p {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--text-light);
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-danger {
    background: #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* Filter */
.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.filter-bar select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.login-box {
    background: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    width: 100%;
    max-width: 400px;
}

.login-box .logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-box .logo img {
    height: 60px;
    width: auto;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-size: 1.75rem;
}

.login-box .form-group {
    margin-bottom: 1.5rem;
}

.login-box .btn {
    width: 100%;
    margin-top: 1rem;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.empty-state .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Programlar Sayfası Özel Stiller */
.program-category-header {
    transition: transform 0.2s, box-shadow 0.2s;
}

.program-category-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.program-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

.program-card-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 80px;
}

.program-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.program-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.program-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.program-description {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.program-launch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    margin-top: auto;
}

.program-launch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.program-launch-btn i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .program-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .program-category-header {
        padding: 1rem !important;
    }

    .program-category-header h2 {
        font-size: 1.25rem !important;
    }

    .program-card-header {
        padding: 1rem;
        min-height: 70px;
    }

    .program-icon {
        font-size: 2rem;
    }

    .program-title {
        font-size: 1.125rem;
    }

    .program-card-body {
        padding: 1rem;
    }
}

/* Dashboard (Ana Sayfa) Stilleri */
.dashboard-content {
    background: radial-gradient(120% 120% at 20% 20%, #f1f5ff, #eef4fb 48%, #e9f4ff 100%);
    min-height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    width: 100%;
    position: relative;
}

.search-container {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(30, 64, 175, 0.1);
    position: sticky;
    top: 80px;
    z-index: 9;
    margin: 0 !important;
    margin-top: 0 !important;
    padding-top: 20px;
    padding-bottom: 20px;
}

.search-box {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 2px solid rgba(30, 64, 175, 0.2);
    border-radius: 12px;
    font-size: 15px;
    background: #fff;
    color: var(--text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.dashboard-sections {
    padding: 0 24px 24px 24px !important;
    max-width: 1280px;
    margin: 0 auto !important;
    width: 100%;
    box-sizing: border-box;
    padding-top: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0;
}

.dashboard-section {
    margin-bottom: 32px;
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    border-left: 4px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 0 !important;
}

.dashboard-section.hidden {
    display: none;
}

.section-programs {
    border-left-color: #1e40af;
    background: linear-gradient(180deg, rgba(30, 64, 175, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.section-documents {
    border-left-color: #dc2626;
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.05) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.section-forms {
    border-left-color: #059669;
    background: linear-gradient(180deg, rgba(5, 150, 105, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.section-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-programs .section-icon-wrapper {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
}

.section-documents .section-icon-wrapper {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.section-forms .section-icon-wrapper {
    background: linear-gradient(135deg, #059669, #10b981);
}

.section-icon {
    font-size: 24px;
    color: #fff;
}

.section-title-wrapper {
    flex: 1;
}

.section-title-wrapper h2 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
}

.section-programs .section-title-wrapper h2 {
    color: #1e3a8a;
}

.section-documents .section-title-wrapper h2 {
    color: #dc2626;
}

.section-forms .section-title-wrapper h2 {
    color: #059669;
}

.section-title-wrapper p {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.2s;
}

.section-link:hover {
    gap: 10px;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.dashboard-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
    overflow: hidden;
    cursor: pointer;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    border-color: #d7deea;
}

.dashboard-card.hidden {
    display: none;
}

.program-card {
    border-color: rgba(30, 64, 175, 0.25);
}

.program-card:hover {
    border-color: rgba(30, 64, 175, 0.4);
    box-shadow: 0 8px 18px rgba(30, 64, 175, 0.12);
}

.document-card {
    border-color: rgba(220, 38, 38, 0.2);
}

.document-card:hover {
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.12);
}

.form-card {
    border-color: rgba(5, 150, 105, 0.2);
}

.form-card:hover {
    border-color: rgba(5, 150, 105, 0.4);
    box-shadow: 0 8px 18px rgba(5, 150, 105, 0.12);
}

.card-visual {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9, #e2ecf9);
}

.card-icon {
    font-size: 3rem;
}

.card-content {
    padding: 16px;
}

.card-title {
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-color);
    font-size: 16px;
}

.card-desc {
    margin: 0 0 12px 0;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.15s ease, transform 0.15s ease;
    border: none;
    cursor: pointer;
}

.card-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .dashboard-content {
        min-height: auto !important;
        padding: 0 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    html {
        margin: 0 !important;
        padding: 0 !important;
    }

    .dashboard-sections {
        padding: 12px !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .search-container {
        padding-top: 12px !important;
        margin-top: 0 !important;
    }

    .dashboard-section {
        padding: 12px !important;
        margin-bottom: 16px !important;
    }

    .section-header {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px !important;
    }

    .section-header h2 {
        font-size: 1.125rem !important;
    }

    .section-header p {
        font-size: 0.8125rem !important;
    }

    .section-icon-wrapper {
        width: 36px !important;
        height: 36px !important;
    }

    .section-icon {
        font-size: 18px !important;
    }

    .section-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .search-container {
        padding: 12px !important;
        position: sticky;
        top: 80px;
        z-index: 10;
    }

    .search-input {
        font-size: 14px !important;
        padding: 10px 14px 10px 40px !important;
    }

    .card-visual {
        aspect-ratio: 16 / 9;
    }

    .card-icon {
        font-size: 2rem !important;
    }

    .card-content {
        padding: 12px !important;
    }

    .card-title {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }

    .card-desc {
        font-size: 12px !important;
        margin-bottom: 10px !important;
    }

    .card-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }

    .main-content {
        padding: 0 !important;
        min-height: auto !important;
    }

    .main-content.dashboard-content {
        padding: 0 !important;
        min-height: auto !important;
    }

    .container {
        min-height: auto !important;
        flex-direction: row;
    }

    .sidebar-toggle {
        left: 0.75rem !important;
        top: 85px !important;
        width: 36px !important;
        height: 36px !important;
        z-index: 1001;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.625rem 0.875rem !important;
        font-size: 0.8125rem !important;
    }

    .filter-select {
        font-size: 0.8125rem !important;
        padding: 0.625rem !important;
    }

    .sidebar-content {
        padding: 1rem 0 !important;
    }
}

/* Footer */
.footer {
    background: var(--card-bg);
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

/* Admin Actions */
.admin-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.admin-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        padding: 1rem 0;
    }

    .sidebar nav ul {
        display: flex;
        overflow-x: auto;
        padding: 0 1rem;
    }

    .sidebar nav ul li {
        margin-bottom: 0;
        margin-right: 1rem;
        white-space: nowrap;
    }

    .sidebar nav ul li a {
        padding: 0.5rem 1rem;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .sidebar nav ul li a.active {
        border-left: none;
        border-bottom-color: var(--primary-color);
    }

    .main-content {
        padding: 1rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .quick-access {
        grid-template-columns: 1fr;
    }

    .header {
        padding: 1rem;
    }

    .header-title {
        display: none;
    }

    .btn-admin {
        padding: 0.5rem;
    }

    .btn-admin span {
        display: none;
    }

    .user-dropdown-toggle span {
        display: none;
    }

    .user-dropdown-toggle {
        padding: 0.5rem;
    }

    .user-dropdown-toggle i:first-child {
        font-size: 1.25rem;
    }

    .user-dropdown-menu {
        right: 0;
        min-width: 180px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
}
