/* Tema Değişkenleri */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #00CED1;
    --accent-strong: #0f9fa2;
    --text-color: #2d3436;
    --muted-text: #5f6b76;
    --light-text: #6b7280;
    --bg-color: #f8f9fa;
    --input-bg: #ffffff;
    --input-border: #e9ecef;
    --icon-color: #2c3e50;
    --placeholder-color: #6c757d;
    --sidebar-bg: #1a1a1a;
    --sidebar-text: #ffffff;
    --sidebar-hover: #00CED1;
    --sidebar-border: rgba(0, 0, 0, 0.1);
    --card-bg: #ffffff;
    --table-border: #dee2e6;
    --submenu-bg: #222222;
    --active-menu-bg: rgba(0, 206, 209, 0.1);
}

/* Dark Tema */
body.dark-theme {
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --accent-color: #00CED1;
    --accent-strong: #58e0e2;
    --text-color: #e9ecef;
    --muted-text: #c3ced8;
    --light-text: #a8b3bf;
    --bg-color: #1a1d21;
    --input-bg: #2a303c;
    --input-border: #404756;
    --icon-color: #ffffff;
    --placeholder-color: #adb5bd;
    --sidebar-bg: #1a1a1a;
    --sidebar-text: #ffffff;
    --sidebar-hover: #00CED1;
    --sidebar-border: rgba(255, 255, 255, 0.1);
    --card-bg: #242931;
    --table-border: #404040;
    --submenu-bg: #222222;
    --active-menu-bg: rgba(0, 206, 209, 0.1);
}

/* Genel Stiller */
body {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
}

/* Container Stiller */
.auth-container {
    background-color: var(--bg-color);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    width: 100%;
}

/* Logo Stilleri */
.auth-logo {
    max-height: 60px;
    width: auto;
    margin: 0 auto 1rem;
    display: block;
}

.light-logo {
    display: block;
}

.dark-logo {
    display: none;
}

body.dark-theme .dark-logo {
    display: block;
}

body.dark-theme .light-logo {
    display: none;
}

/* Sidebar Logo */
.sidebar-logo {
    max-height: 40px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.sidebar-logo-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.15;
}

/* Sidebar Brand */
.sidebar-brand {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--sidebar-border);
    margin-bottom: 0;
    height: 80px;
}

/* Auth Container Logo Alanı */
.auth-container .text-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Form Elemanları */
.form-control {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-color);
}

.form-control:focus {
    background-color: var(--input-bg);
    border-color: var(--accent-color);
    color: var(--text-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 206, 209, 0.25);
}

.form-control::placeholder {
    color: var(--placeholder-color) !important;
    opacity: 0.7;
}

.input-group-text {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-color);
}

.input-group-text i {
    color: var(--icon-color) !important;
}

/* Butonlar */
.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #00A9AB;
    border-color: #00A9AB;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    color: var(--icon-color);
    border-color: var(--input-border);
    background-color: var(--input-bg);
}

.btn-outline-secondary:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background-color: var(--input-bg);
}

.btn-outline-secondary:focus {
    box-shadow: none;
}

/* Tema Değiştirme Butonu */
.theme-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--input-border);
    z-index: 1000;
}

.theme-switch:hover {
    background-color: var(--input-bg);
    color: var(--text-color);
    border-color: var(--accent-color);
}

/* Metin Stilleri */
.text-muted {
    color: var(--text-color) !important;
    opacity: 0.7;
}

.page-header {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 2rem !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* İkonlar */
.feature-icon {
    color: var(--icon-color) !important;
    transition: color 0.3s ease;
}

/* Linkler */
.custom-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.custom-link:hover {
    color: #00A9AB;
    text-decoration: underline;
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Mobil Menü Butonu */
.mobile-menu-btn {
    position: fixed;
    top: 20px;
    right: 70px;
    z-index: 1050;
    color: var(--text-color);
    background-color: var(--bg-color);
    border: 1px solid var(--input-border);
    width: 38px;
    height: 38px;
    padding: 0;
    display: none;
    border-radius: 0.375rem;
}

.mobile-menu-btn:hover {
    background-color: var(--input-bg);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

@media (max-width: 991.98px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Sidebar Stiller */
.sidebar {
    background:
        radial-gradient(circle at top left, rgba(11, 188, 196, 0.18), transparent 28rem),
        linear-gradient(180deg, #172435 0%, #10263e 52%, #0d1d31 100%);
    border-right: 1px solid rgba(71, 85, 105, 0.55);
    min-height: 100vh;
    width: 280px !important;
    flex: 0 0 280px;
    max-width: 280px;
    box-shadow: 18px 0 50px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    inset: 18px 14px auto 14px;
    height: 160px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.sidebar-content {
    height: 100vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.sidebar .nav-link {
    position: relative;
    padding: 0.9rem 1rem;
    color: #eaf2ff;
    border-radius: 16px;
    margin: 0.22rem 0.95rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -0.01em;
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
    background: transparent;
}

.sidebar .nav-link i:first-child {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    opacity: 0.92;
}

.sidebar .nav-link.active {
    background:
        linear-gradient(135deg, rgba(11, 188, 196, 0.18), rgba(21, 86, 214, 0.12));
    color: #ffffff;
    border-color: rgba(11, 188, 196, 0.22);
    box-shadow: 0 10px 26px rgba(11, 188, 196, 0.12);
}

.sidebar .nav-link:hover {
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(11, 188, 196, 0.16), rgba(21, 86, 214, 0.1));
    border-color: rgba(11, 188, 196, 0.18);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    transform: translateX(2px);
}

.sidebar .nav-link i.fa-chevron-down {
    font-size: 0.8rem;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.sidebar .nav-link[aria-expanded="true"] i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Sidebar Menü Stilleri */
.nav-link {
    position: relative;
    padding: 0.8rem 1rem;
    color: var(--sidebar-text);
    border-radius: 16px;
    margin: 0.2rem 1rem;
    transition: all 0.22s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
}

.nav-link i:first-child {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.nav-link.active {
    background:
        linear-gradient(135deg, rgba(11, 188, 196, 0.18), rgba(21, 86, 214, 0.12));
    color: #ffffff;
    border-color: rgba(11, 188, 196, 0.22);
    box-shadow: 0 10px 22px rgba(11, 188, 196, 0.12);
}

.nav-link:hover {
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(11, 188, 196, 0.16), rgba(21, 86, 214, 0.1));
    border-color: rgba(11, 188, 196, 0.18);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    transform: translateX(2px);
}

.nav-link i.fa-chevron-down {
    font-size: 0.8rem;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.nav-link[aria-expanded="true"] i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Alt Menü Stilleri */
.nav-submenu {
    padding: 0.5rem 0 0.65rem 2.7rem;
}

.nav-submenu .nav-link {
    padding: 0.55rem 0.95rem;
    margin: 0;
    font-size: 0.9rem;
    border-radius: 12px;
    border-left: 2px solid rgba(86, 99, 119, 0.85);
    background: rgba(255, 255, 255, 0.02);
    color: #d6e2f2;
}

.nav-submenu .nav-link:hover,
.nav-submenu .nav-link.active {
    border-left-color: #0bbcc4;
    background: rgba(255, 255, 255, 0.06);
}

.nav-submenu .nav-link i {
    font-size: 0.9rem;
}

/* Çıkış Yap Butonu */
.nav-link.text-danger {
    color: #ff8a8f !important;
}

.nav-link.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.14);
    color: #ffd4d6 !important;
}

/* Offcanvas Stiller */
.offcanvas-lg {
    background:
        radial-gradient(circle at top left, rgba(11, 188, 196, 0.18), transparent 28rem),
        linear-gradient(180deg, #172435 0%, #10263e 52%, #0d1d31 100%);
}

.offcanvas-header {
    border-bottom: 1px solid var(--sidebar-border);
}

.offcanvas-header .btn-close {
    filter: invert(1);
}

.offcanvas-title {
    color: var(--sidebar-text);
}

.sidebar-brand {
    padding: 1.25rem 1.1rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.75rem;
    height: auto;
    position: relative;
    z-index: 1;
}

.sidebar-logo {
    max-height: 44px;
    margin: 0;
}

.sidebar-logo-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

@media (min-width: 992px) {
    .offcanvas-lg {
        transform: none !important;
        visibility: visible !important;
        position: sticky !important;
        top: 0;
        height: 100vh;
    }
    
    .offcanvas-header {
        display: none;
    }
}

/* Kart Stilleri */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--input-border);
}

.card-body {
    color: var(--text-color);
}

.card-title {
    color: var(--text-color);
}

/* Tablo Stilleri */
.table {
    color: var(--text-color);
}

.table thead th {
    border-bottom-color: var(--table-border);
}

.table td, .table th {
    border-color: var(--table-border);
}

/* Badge Stilleri */
.badge.bg-success {
    background-color: #198754 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000;
}

/* Ana İçerik Stilleri */
.main-content {
    background-color: var(--bg-color);
    min-height: 100vh;
    padding: 2rem;
    flex: 1 1 auto;
    width: calc(100% - 280px);
    max-width: calc(100% - 280px);
    min-width: 0;
}

/* İstatistik Kartları */
.dashboard-card {
    border: none;
    border-radius: 16px;
    background: var(--card-bg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    overflow: hidden;
    position: relative;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.dashboard-card:hover::before {
    opacity: 1;
}

.dashboard-card .card-body {
    padding: 1.5rem;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--text-color);
    opacity: 0.7;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0.5rem 0;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
}

/* Hızlı İşlemler */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0.5rem;
}

.quick-actions .btn {
    border-radius: 12px;
    padding: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    background-color: var(--card-bg);
    border: 1px solid var(--input-border);
    color: var(--text-color);
    margin: 0.5rem;
    min-width: 200px;
}

.quick-actions .btn i {
    font-size: 1.2rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.quick-actions .btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.quick-actions .btn:hover i {
    color: white;
}

/* Responsive Ayarlar */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .stat-icon {
        font-size: 2rem;
        padding: 0.75rem;
    }

    .content-header {
        padding: 1rem;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 991.98px) {
    .container-fluid,
    .container-fluid > .row {
        --bs-gutter-x: 0;
    }

    .sidebar {
        max-width: none;
    }

    .main-content {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        padding: 5.25rem 1rem 1rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .main-content {
        padding: 5.5rem 1.25rem 1.25rem;
    }
}

@media (min-width: 992px) {
    .container-fluid > .row {
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .main-content {
        padding: 2rem;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .main-content {
        padding: 1.35rem;
    }
}

@media (min-width: 1200px) and (max-width: 1439.98px) {
    .main-content {
        padding: 1.6rem;
    }
}

@media (min-width: 1440px) {
    .main-content {
        padding: 2rem 2.1rem;
    }
}

/* Profil Stilleri */
.sidebar-profile {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    margin: 0.2rem 1rem 1rem;
    border-radius: 22px;
    transition: all 0.3s ease;
    text-align: center;
    padding: 1rem 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 190px;
    box-sizing: border-box;
}

.sidebar-profile:hover {
    background:
        linear-gradient(180deg, rgba(11, 188, 196, 0.1), rgba(255, 255, 255, 0.05));
    transform: translateY(-2px);
}

.sidebar-profile > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 158px;
    color: inherit;
}

.profile-avatar {
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    position: relative;
}

.profile-avatar img {
    width: 84px;
    height: 84px;
    border: 3px solid rgba(11, 188, 196, 0.75);
    transition: all 0.3s ease;
    box-shadow: 0 10px 24px rgba(11, 188, 196, 0.18);
    object-fit: cover;
    display: block;
}

.sidebar-profile:hover .profile-avatar img {
    transform: scale(1.05);
    box-shadow: 0 14px 28px rgba(11, 188, 196, 0.28);
}

.profile-info h6 {
    color: var(--sidebar-text);
    font-weight: 800;
    margin: 0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.profile-info p {
    color: var(--sidebar-text);
    opacity: 0.7;
    font-size: 0.8rem;
    margin: 0;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
}

.sidebar-profile:hover .profile-info h6 {
    color: #8ff7fb;
}

.sidebar-profile:hover .profile-info p {
    opacity: 0.9;
}

.profile-status {
    width: 16px;
    height: 16px;
    background-color: #22c55e;
    border-radius: 50%;
    border: 2px solid var(--sidebar-bg);
    position: absolute;
    bottom: 5px;
    right: 5px;
}

/* Content Header Stilleri */
.content-header {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 206, 209, 0.1);
}

.content-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-color), rgba(0, 206, 209, 0.2));
    border-radius: 4px;
}

.page-title {
    color: var(--text-color);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    letter-spacing: -0.5px;
    line-height: 1.3;
    background: linear-gradient(45deg, var(--text-color) 30%, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 1rem;
    margin-top: 0.5rem;
    font-weight: 400;
    position: relative;
    padding-left: 1.5rem;
}

.page-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1rem;
    height: 2px;
    background: var(--accent-color);
    transform: translateY(-50%);
}

.header-title-wrap {
    position: relative;
    padding-right: 1rem;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.header-actions .btn {
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 206, 209, 0.05);
}

.header-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 206, 209, 0.15);
}

.header-actions .btn i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .content-header {
        padding: 1.5rem;
    }

    .page-title {
        font-size: 1.4rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    .header-actions {
        margin-top: 1rem;
        width: 100%;
        justify-content: flex-start;
    }

    .header-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
}

.content-body {
    background: transparent;
}

.content-body .card {
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: none;
} 
.dashboard-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.main-content {
    background-color: var(--bg-color);
    min-height: 100vh;
}

.quick-actions .btn {
    margin: 0.5rem;
    min-width: 200px;
}
