/* Modern Kurumsal Dashboard Tasarımı - Uzman Mutemet */

:root {
    --bg-color: #f8fafc;
    --card-color: #ffffff;
    --sidebar-color: #1e293b;
    --accent-color: #4f46e5;
    --text-color: #1e293b;
    --hover-color: #475569;
    --active-color: #6366f1;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ==================== SIDEBAR ==================== */

.sidebar {
    width: 280px;
    background-color: var(--sidebar-color);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 35px 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-logo-circle {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.sidebar-logo-circle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    border-radius: 14px;
}

.sidebar-logo-initials {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.sidebar-logo-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.logo-uzman {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
    letter-spacing: 1px;
    line-height: 1.2;
}

.logo-mutemet {
    font-size: 11px;
    font-weight: 600;
    color: #cbd5e1;
    letter-spacing: 4px;
    text-transform: uppercase;
    line-height: 1.2;
}

.sidebar-nav {
    flex: 1;
    padding: 10px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 4px 0;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    border-left: 4px solid transparent;
}

.nav-item:hover {
    background-color: #1e293b;
    color: #ffffff;
}

.nav-item.active {
    background-color: #6366f1;
    color: #ffffff;
    border-left-color: #6366f1;
    font-weight: 600;
}

.nav-item.active .nav-icon {
    color: inherit;
}

.nav-icon {
    font-size: 20px;
    width: 50px;
    text-align: center;
    margin-right: 8px;
    transition: color 0.2s ease;
}

.nav-item:not(.active) .nav-icon {
    color: #94a3b8;
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
    color: inherit;
}

.nav-text {
    font-size: 14px;
    font-weight: 400;
}

.nav-item.active .nav-text {
    font-weight: 600;
}

/* Alt Menü Yapısı */
.nav-item-parent {
    position: relative;
}

.nav-item-toggle {
    cursor: pointer;
}

.nav-arrow {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-item-parent.open .nav-arrow {
    transform: rotate(180deg);
}

.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(0, 0, 0, 0.2);
    margin-left: 50px;
    border-radius: 8px;
    margin-top: 4px;
    margin-bottom: 4px;
}

.nav-item-parent.open .nav-submenu {
    max-height: 200px;
}

.nav-subitem {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 13px;
}

.nav-subitem:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-subitem.active {
    background-color: #6366f1;
    color: #ffffff;
    font-weight: 600;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.version-text {
    font-size: 11px;
    color: #94a3b8;
}

/* ==================== MAIN CONTENT ==================== */

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

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 30px;
}

/* ==================== CARDS ==================== */

.card {
    background: var(--card-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

/* ==================== FORMS ==================== */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: #ffffff;
    color: var(--text-color);
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input.error {
    border-color: var(--error-color);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* ==================== BUTTONS ==================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background-color: var(--hover-color);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #334155;
}

.btn-success {
    background-color: var(--success-color);
    color: #ffffff;
}

.btn-danger {
    background-color: var(--error-color);
    color: #ffffff;
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* ==================== TABLES ==================== */

.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: var(--text-color);
    position: sticky;
    top: 0;
}

table tr:hover {
    background-color: #f8fafc;
}

table td.text-right {
    text-align: right;
}

/* ==================== TOAST NOTIFICATIONS ==================== */

#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    min-width: 300px;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease;
    font-size: 14px;
}

.toast.success {
    background-color: var(--success-color);
    color: #ffffff;
}

.toast.error {
    background-color: var(--error-color);
    color: #ffffff;
}

.toast.info {
    background-color: var(--info-color);
    color: #ffffff;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==================== KPI CARDS ==================== */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background: var(--card-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.kpi-label {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 500;
}

.kpi-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-color);
}

/* ==================== RESPONSIVE ==================== */

/* Mobil Sidebar Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background-color: var(--sidebar-color);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle:hover {
    background-color: var(--hover-color);
}

/* Sidebar Overlay (Mobil) */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 60px 15px 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .welcome-logo {
        flex-direction: column;
        gap: 16px;
    }
    
    .logo-text-container {
        text-align: center;
    }
    
    .title-main {
        font-size: 28px;
    }
    
    .title-sub {
        font-size: 22px;
    }
    
    .logo-circle {
        width: 60px;
        height: 60px;
    }
    
    .logo-initials {
        font-size: 24px;
    }
    
    .quick-access-grid {
        grid-template-columns: 1fr;
        padding: 20px 15px;
        gap: 20px;
    }
    
    .card {
        padding: 20px;
    }
    
    .page-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 60px 10px 15px;
    }
    
    .title-main {
        font-size: 24px;
    }
    
    .title-sub {
        font-size: 18px;
    }
    
    .welcome-domain {
        font-size: 12px;
    }
    
    .kpi-value {
        font-size: 22px;
    }
}

/* ==================== UTILITY CLASSES ==================== */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

