/* ==========================================================================
   ŞANTİYE360 - Özel Stiller (Premium & Modern)
   ========================================================================== */

:root {
    --primary-color: #1a365d;
    --secondary-color: #2b6cb0;
    --accent-color: #ed8936;
    --text-color: #2d3748;
    --bg-color: #f7fafc;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --sidebar-width: 260px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Dashboard Sidebar Layout
   -------------------------------------------------------------------------- */
#wrapper {
    overflow-x: hidden;
}

#sidebar-wrapper {
    min-height: 100vh;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--primary-color) 0%, #102a43 100%);
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    transition: margin 0.25s ease-out;
    z-index: 1000;
}

#sidebar-wrapper .list-group {
    width: var(--sidebar-width);
}

#page-content-wrapper {
    min-width: 100vw;
    background-color: #f4f6f9;
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: calc(var(--sidebar-width) * -1);
}

.cursor-pointer {
    cursor: pointer;
}

.sidebar-wrapper .list-group-item {
    border: none;
    padding: 0.85rem 1.5rem;
    transition: all 0.3s;
}

.sidebar-wrapper .list-group-item:hover,
.sidebar-wrapper .list-group-item.active-menu {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-left: 4px solid var(--accent-color);
}

/* Mobil ve Masaüstü Sidebar Düzenlemeleri */
#sidebar-wrapper {
    margin-left: calc(var(--sidebar-width) * -1);
}

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

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }
    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }
    #wrapper.toggled #sidebar-wrapper {
        margin-left: calc(var(--sidebar-width) * -1);
    }
}

/* Mobil için tablo ve kart iyileştirmeleri */
@media (max-width: 767.98px) {
    .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .card-body {
        padding: 1rem !important;
    }

    .stat-icon {
        padding: 0.75rem !important;
    }
    
    .stat-icon i {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.25rem !important;
    }

    /* Tablo taşmalarını önle */
    .table-responsive {
        border: 0;
    }
    
    /* Login kartı mobilde tam genişlik */
    .login-glass-card {
        padding: 2rem;
        margin: 1rem;
    }
}

/* Tablo Hover ve Genel Stil */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   Giriş Ekranı (Login) - Glassmorphism Tasarım
   -------------------------------------------------------------------------- */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.login-glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.login-header h2 {
    color: var(--primary-color);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Genel Bileşenler
   -------------------------------------------------------------------------- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Card Stilleri */
.glass-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
