/* ===================================
   DASHBOARD - SAAS DESIGN SYSTEM
   Professional Color Palette & Modern Design
   Responsive & Accessible
   =================================== */

/* CSS Variables - Profesyonel Renk Paleti */
:root {
    /* Primary Colors - Modern Blue */
    --color-primary: #4F46E5;
    --color-primary-dark: #4338CA;
    --color-primary-light: #6366F1;
    --color-primary-lighter: #818CF8;
    
    /* Secondary Colors - Deep Navy */
    --color-secondary: #1E293B;
    --color-secondary-dark: #0F172A;
    --color-secondary-light: #334155;
    
    /* Accent Colors */
    --color-accent: #8B5CF6;
    --color-accent-light: #A78BFA;
    
    /* Semantic Colors */
    --color-success: #10B981;
    --color-success-light: #34D399;
    --color-info: #3B82F6;
    --color-info-light: #60A5FA;
    --color-warning: #F59E0B;
    --color-warning-light: #FBBF24;
    --color-danger: #EF4444;
    --color-danger-light: #F87171;
    
    /* Gray Scale */
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;
    
    /* Background Colors */
    --bg-body: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-sidebar: #FFFFFF;
    
    /* Shadows - Enhanced */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.fas {
    --fa-family: var(--fa-family-duotone);
    --fa-style: 900;
    letter-spacing: normal;
    position: relative;
}

.far {
    --fa-family: var(--fa-family-jelly-duo);
    --fa-style: 400;
    letter-spacing: normal;
    position: relative;
}

.far.fill, button[data-value="true"] .far {
    --fa-family: var(--fa-family-jelly-fill);
}

.far:before, .fas:before {
    position: absolute;
    color: currentColor;
    opacity: 1;
}

.far:after, .fas:after {
    color: var(--fa-secondary-color, currentColor);
    opacity: var(--fa-secondary-opacity, .4);
}

:is(.far, .fas):after {
    content: var(--fa);
    font-feature-settings: "ss01";
}

/* Dashboard Layout Styles */
.dashboard-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-body);
    overflow-x: hidden;
    width: 100%;
}

#wrapper {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

#sidebar {
    min-height: 100vh;
    width: 260px;
    background: var(--bg-sidebar);
    transition: margin 0.25s ease-out;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    border-right: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-sm);
}

#page-content-wrapper {
    width: 100%;
    margin-left: 260px;
    transition: all 0.25s ease-out;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Sidebar Toggle - Tüm ekranlarda */
#wrapper.toggled #sidebar {
    margin-left: -260px;
}

#wrapper.toggled #page-content-wrapper {
    margin-left: 0;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    #sidebar {
        margin-left: -260px;
    }
    
    #page-content-wrapper {
        margin-left: 0;
    }
    
    #wrapper.toggled #sidebar {
        margin-left: 0;
    }
    
    #wrapper.toggled #page-content-wrapper {
        margin-left: 0;
    }
}

/* Logo */
.logo-dashboard {
    padding: 1.25rem;
    border-bottom: 1px solid var(--color-gray-200);
}

.logo-dashboard h4 {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin: 0;
}

/* Sidebar Navigation */
#sidebar .nav-link {
    color: var(--color-gray-600);
    font-weight: 500;
    transition: var(--transition);
    border-radius: 10px;
    margin: 0.25rem 0.5rem;
    padding: 0.75rem 1rem;
}

#sidebar .nav-link:hover {
    background-color: var(--color-gray-100);
    color: var(--color-primary);
    transform: translateX(4px);
}

#sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

#sidebar .nav-link i {
    font-size: 1.1rem;
    transition: var(--transition);
    width: 24px;
}

/* Sidebar Toggle Button */
#sidebarToggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border: none;
    padding: 0;
    border-radius: 10px;
    transition: var(--transition);
}

#sidebarToggle:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

#sidebarToggle i {
    transition: transform 0.3s ease;
}

#wrapper.toggled #sidebarToggle i {
    transform: rotate(180deg);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ===================================
   DASHBOARD COMPONENTS
   =================================== */

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.welcome-content {
    position: relative;
    z-index: 1;
}

.welcome-title {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .welcome-card {
        padding: 1.5rem;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .welcome-subtitle {
        font-size: 0.9rem;
    }
}

/* Stats Cards */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--color-gray-200);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-card-primary .stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(79, 70, 229, 0.15) 100%);
    color: var(--color-primary);
}

.stat-card-success .stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.15) 100%);
    color: var(--color-success);
}

.stat-card-info .stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.15) 100%);
    color: var(--color-accent);
}

.stat-card-warning .stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.15) 100%);
    color: var(--color-warning);
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0;
}

@media (max-width: 576px) {
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon-wrapper {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
}

/* Activity Card */
.activity-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-gray-200);
    height: 100%;
}

.activity-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-gray-200);
}

.activity-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0;
}

.activity-body {
    padding: 1.5rem;
    min-height: 300px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 250px;
    color: var(--color-gray-600);
}

.empty-state i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-state p {
    margin: 0;
    font-size: 0.95rem;
}

/* Quick Actions Card */
.quick-actions-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-gray-200);
    height: 100%;
}

.quick-actions-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-gray-200);
}

.quick-actions-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0;
}

.quick-actions-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--color-gray-200);
}

.quick-action-btn i {
    font-size: 1.125rem;
}

.quick-action-primary {
    color: var(--color-primary);
    background: rgba(79, 70, 229, 0.08);
    border-color: rgba(79, 70, 229, 0.2);
}

.quick-action-primary:hover {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    border-color: var(--color-primary);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.quick-action-success {
    color: var(--color-success);
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}

.quick-action-success:hover {
    background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-light) 100%);
    color: white;
    border-color: var(--color-success);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.quick-action-info {
    color: var(--color-accent);
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.2);
}

.quick-action-info:hover {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    color: white;
    border-color: var(--color-accent);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.quick-action-secondary {
    color: var(--color-secondary);
    background: rgba(30, 41, 59, 0.08);
    border-color: rgba(30, 41, 59, 0.2);
}

.quick-action-secondary:hover {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
    color: white;
    border-color: var(--color-secondary);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.3);
}

/* Services Card */
.services-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-gray-200);
}

.services-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-gray-200);
}

.services-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0;
}

.services-body {
    padding: 1.5rem;
}

.service-item {
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.service-item:hover {
    background: white;
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-item i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.service-item h6 {
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.service-item p {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    margin: 0;
}

@media (max-width: 768px) {
    .service-item {
        padding: 1.25rem;
    }
    
    .service-item i {
        font-size: 2rem;
    }
}

/* Navbar */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1020;
    padding: 20px;
}

/* Dropdown Menu - Welcome card üstünde görünsün */
.navbar .dropdown-menu {
    z-index: 1050;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
    padding: 0.5rem;
}

.navbar .dropdown-menu .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.navbar .dropdown-menu .dropdown-item:hover {
    background: rgba(255, 122, 0, 0.08);
    color: var(--color-primary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card,
.activity-card,
.quick-actions-card,
.services-card,
.welcome-card {
    animation: fadeIn 0.6s ease-out;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Utility Classes */
.backdrop-blur-sm {
    backdrop-filter: blur(8px);
}

.bg-opacity-80 {
    --bs-bg-opacity: 0.8;
}

/*NOTIFICATION*/
#bar-notification {
    z-index: 99999;
    position: fixed;
    width: 100%;
    display: none;
    bottom: 0;
    margin: auto;
    padding: 10px;
    border-radius: 0;
}

#bar-notification p {
    margin-bottom: 0;
    color: #fff;
    text-align: center;
}

#bar-notification a {
    text-decoration: underline;
    color: #fff !important;
}

#bar-notification .btn-close {
    background-color: #fff;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    right: 7px;
    top: 4px;
}

.notification-top {
    bottom: initial !important;
    top: 0 !important;
}

.notification-success {
    background-color: #198754 !important;
}

.notification-danger {
    background-color: #dc3545 !important;
}

.notification-warning {
    background-color: #dc6601 !important;
}

.notification-info {
    background-color: #0dcaf0 !important;
}