/**
 * Modern Design System - YILMAK
 * Soft, modern tasarım sistemi
 * Mevcut renkler korunmuştur
 */

/* ============================================
   TYPOGRAPHY
   ============================================ */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   BUTTONS - Modern Soft Design
   ============================================ */

.btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 10px 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover:before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 23, 70, 0.2);
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, #001746 0%, #001530 100%);
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #001530 0%, #00111a 100%);
}

/* Success Button */
.btn-success {
    background: linear-gradient(135deg, #00a65a 0%, #008d4c 100%);
    color: #ffffff;
}

.btn-success:hover {
    background: linear-gradient(135deg, #008d4c 0%, #00743d 100%);
}

/* Danger Button */
.btn-danger {
    background: linear-gradient(135deg, #dd4b39 0%, #c23321 100%);
    color: #ffffff;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c23321 0%, #a82a1a 100%);
}

/* Warning Button */
.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #d68910 100%);
    color: #ffffff;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d68910 0%, #b9770e 100%);
}

/* Info Button */
.btn-info {
    background: linear-gradient(135deg, #00c0ef 0%, #00a7d0 100%);
    color: #ffffff;
}

.btn-info:hover {
    background: linear-gradient(135deg, #00a7d0 0%, #008eb3 100%);
}

/* Default Button */
.btn-default {
    background: #ffffff;
    color: #444444;
}

.btn-default:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

/* Button Sizes */
.btn-sm {
    padding: 8px 20px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 12px;
}

/* Button with Icons */
.btn i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: scale(1.1);
}

/* Flat Button Variant */
.btn-flat {
    box-shadow: none;
    background: transparent;
}

.btn-flat:hover {
    box-shadow: none;
    transform: none;
    background: rgba(0, 0, 0, 0.05);
}

/* Card Header Buttons - Shadow Kaldırıldı */
.box-header .btn,
.card-header .btn {
    box-shadow: none !important;
}

.box-header .btn:hover,
.card-header .btn:hover {
    box-shadow: none !important;
}

.box-header .btn:active,
.card-header .btn:active {
    box-shadow: none !important;
}

.box-header .btn:focus,
.card-header .btn:focus {
    box-shadow: none !important;
}

/* Table içindeki btn-group butonları - Shadow ve hizalama düzeltmeleri */
.table .btn-group .btn {
    box-shadow: none !important;
    transform: none !important;
    vertical-align: middle;
}

.table .btn-group .btn:hover {
    box-shadow: none !important;
    transform: none !important;
}

.table .btn-group .btn:active {
    box-shadow: none !important;
    transform: none !important;
}

.table .btn-group .btn:focus {
    box-shadow: none !important;
    outline: none;
}

.table .btn-group {
    display: inline-flex;
    vertical-align: middle;
}

.table .btn-group > .btn {
    position: relative;
    float: none;
    display: inline-block;
}

/* Table içindeki action butonları - Minimal tasarım */
.table td form {
    display: inline-flex !important;
    flex-direction: row !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    width: auto !important;
}

.table td form .btn,
.table td form a.btn,
.table td .btn,
.table td a.btn {
    margin-right: 0 !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    vertical-align: middle;
    float: none !important;
    display: inline-flex !important;
    flex-shrink: 0;
}

.table td {
    white-space: nowrap;
}

.table td form * {
    display: inline-block;
}

.table td form button,
.table td form a {
    display: inline-flex !important;
}

.table .btn-default.btn-sm {
    box-shadow: none !important;
    border: 0 !important;
    background: #ffffff;
    padding: 6px 10px;
    min-width: 32px;
    height: 32px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    float: none !important;
    width: auto !important;
}

/* Product Name kolonu %10 daralt */
.table th:nth-child(3),
.table td:nth-child(3) {
    width: 25% !important;
    max-width: 25% !important;
}

.table .btn-default.btn-sm:hover {
    box-shadow: none !important;
    background: #f5f5f5;
    border-color: #d0d0d0;
    transform: none;
}

.table .btn-default.btn-sm:active,
.table .btn-default.btn-sm:focus {
    box-shadow: none !important;
    outline: none;
    background: #f0f0f0;
}

.table .btn-default.btn-sm i {
    color: #000000 !important;
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Toplam fiyat - Currency ve tutar yan yana */
.table td strong span {
    display: inline-block;
    margin-right: 4px;
}

/* Offer detail sayfası - btn-group butonları yan yana */
.row .col-md-3:last-child {
    display: flex !important;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
    align-items: center;
}

.row .col-md-3:last-child .btn-group {
    flex-shrink: 0;
    margin-right: 5px !important;
    margin-left: 0 !important;
    float: none !important;
}

.row .col-md-3:last-child .btn-group.pull-right {
    float: none !important;
}

/* Invoice margin kaldır */
.invoice {
    margin: 0 !important;
}

/* Offer detail - Status select2 ve Save butonu yükseklik eşitleme */
.row .col-md-3 form .select2-container {
    height: 38px;
}

.row .col-md-3 form .select2-container .select2-selection--single {
    height: 38px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.row .col-md-3 form .select2-container .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
}

.row .col-md-3 form .btn-primary {
    height: 38px;
    line-height: 1;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   ICONS - Modern Styling
   ============================================ */

.fa, .ion {
    transition: all 0.3s ease;
}

/* Icon in buttons */
.btn .fa,
.btn .ion {
    vertical-align: middle;
}

/* Icon hover effects */
a:hover .fa,
a:hover .ion {
    transform: scale(1.1);
}

/* Icon spacing in lists */
.list-group-item .fa,
.list-group-item .ion {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* ============================================
   TABLES - Modern Soft Design
   ============================================ */

.table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

.table > thead > tr > th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 16px;
    border: none;
    border-bottom: 2px solid #e9ecef;
}

.table > tbody > tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

/* Table row hover efekti kaldırıldı */
.table > tbody > tr:hover {
    background-color: transparent;
    transform: none;
    box-shadow: none;
}

.table > tbody > tr > td {
    padding: 16px;
    vertical-align: middle;
    border: none;
    color: #495057;
}

/* Zebra striping - soft */
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #fafbfc;
}

/* Table striped hover efekti kaldırıldı */
.table-striped > tbody > tr:nth-of-type(odd):hover {
    background-color: #fafbfc;
}

/* Bordered table */
.table-bordered {
    border: 1px solid #e9ecef;
}

.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td {
    border: 1px solid #e9ecef;
}

/* Table responsive wrapper */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
}

/* ============================================
   FORMS - Modern Input Design
   ============================================ */

.form-control {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 10px 16px;
    transition: all 0.3s ease;
    font-size: 14px;
    height: 38px;
    line-height: 1.5;
}

.form-control:focus {
    border-color: #001746;
    box-shadow: 0 0 0 3px rgba(0, 23, 70, 0.1);
    outline: none;
}

.form-control:hover {
    border-color: #b0b0b0;
}

/* Textarea için border-radius eşitleme */
textarea.form-control {
    border-radius: 10px;
    min-height: 38px;
    resize: vertical;
}

/* CKEditor uyarı mesajını gizle */
.cke_notification,
.cke_notification_warning,
.cke_notification_info,
[class*="cke_notification"],
[class*="notification"][class*="warning"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Select2 yükseklik eşitleme ve dikey ortalama */
.select2-container--default .select2-selection--single {
    height: 38px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
    padding-left: 12px;
    padding-right: 20px;
    display: flex;
    align-items: center;
    height: 100%;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 8px;
    top: 0;
    width: 20px;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    position: relative;
    top: 0;
    left: 0;
    margin: 0;
    border-color: #888 transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    width: 0;
    display: block;
    transform: none;
}

/* Select2 ve buton yükseklik eşitleme - form içinde */
.form-group .select2-container {
    height: 38px;
}

.form-group .select2-container .select2-selection--single {
    height: 38px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.form-group .select2-container .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
}

/* Select2 focus durumu - form-control ile aynı */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #001746;
    box-shadow: 0 0 0 3px rgba(0, 23, 70, 0.1);
}

/* Select2 hover durumu - form-control ile aynı */
.select2-container--default .select2-selection--single:hover {
    border-color: #b0b0b0;
}

.form-group .btn {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    line-height: 1;
}

/* Input with icons */
.has-feedback .form-control {
    padding-right: 45px;
}

.has-feedback .form-control-feedback {
    right: 15px;
    color: #999;
    transition: color 0.3s ease;
}

.has-feedback .form-control:focus ~ .form-control-feedback {
    color: #001746;
}

/* ============================================
   CARDS / BOXES - Modern Design
   ============================================ */

.box {
    border-radius: 16px;
    box-shadow: none !important;
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Box hover efekti kaldırıldı */
.box:hover {
    box-shadow: none !important;
    transform: none;
}

.box-header {
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid #e9ecef;
    box-shadow: none !important;
}

.box-body {
    padding: 10px !important;
    box-shadow: none !important;
}

/* ============================================
   LABELS / BADGES - Soft Design
   ============================================ */

.label {
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.label-success {
    background: linear-gradient(135deg, #00a65a 0%, #008d4c 100%);
}

.label-danger {
    background: linear-gradient(135deg, #dd4b39 0%, #c23321 100%);
}

.label-warning {
    background: linear-gradient(135deg, #f39c12 0%, #d68910 100%);
}

.label-info {
    background: linear-gradient(135deg, #00c0ef 0%, #00a7d0 100%);
}

.label-primary {
    background: linear-gradient(135deg, #001746 0%, #001530 100%);
}

/* ============================================
   ALERTS - Modern Design
   ============================================ */

.alert {
    border-radius: 12px;
    border: none;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.alert-danger {
    background: linear-gradient(135deg, #fee 0%, #fdd 100%);
    color: #c23321;
}

.alert-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #008d4c;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #d68910;
}

.alert-info {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    color: #00a7d0;
}

/* ============================================
   LOGIN PAGE SPECIFIC STYLES
   ============================================ */

.login-container {
    display: flex;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

.login-banner {
    flex: 1;
    background: linear-gradient(135deg, #001746 0%, #001530 50%, #00111a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.login-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/login-banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 0;
}

.login-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.login-banner-logo {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0;
}

.login-banner-logo img {
    height: 60px;
    width: auto;
    max-width: 200px;
}

.login-banner-crm {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #ffffff;
    line-height: 1;
    margin-left: 0;
}

.login-banner-text {
    position: absolute;
    left: 40px;
    bottom: 60px;
    z-index: 2;
    font-size: 36px;
    font-weight: 300;
    color: #ffffff;
    text-align: left;
    max-width: 600px;
    line-height: 1.4;
}


.login-form-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: #f8f9fa;
}

.login-form-wrapper {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo a {
    font-size: 36px;
    font-weight: 700;
    color: #001746;
    text-decoration: none;
    letter-spacing: -1px;
}

.login-logo a b {
    color: #00111a;
}

.login-box-msg {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    font-size: 16px;
}

.login-form .form-group {
    margin-bottom: 24px;
}

.login-form .form-control {
    height: 50px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    padding-left: 50px;
    font-size: 15px;
}

.login-form .form-control:focus {
    border-color: #001746;
    box-shadow: 0 0 0 4px rgba(0, 23, 70, 0.1);
}

.login-form .has-feedback {
    position: relative;
}

.login-form .form-control-feedback {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
    z-index: 10;
}

.login-form .form-control:focus ~ .form-control-feedback {
    color: #001746;
}

.login-form .checkbox {
    margin-top: 20px;
}

.login-form .checkbox label {
    font-weight: 400;
    color: #666;
    cursor: pointer;
}

.login-form .btn-primary {
    width: 100%;
    height: 50px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
}

.login-form-links {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.login-form-links a {
    color: #001746;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: inline-block;
    margin: 0 10px;
}

.login-form-links a:hover {
    color: #00111a;
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-banner {
        min-height: 300px;
        padding: 40px 30px;
    }
    
    .login-banner-logo {
        top: 20px;
        left: 20px;
    }
    
    .login-banner-logo img {
        height: 40px;
    }
    
    .login-banner-crm {
        font-size: 22px;
    }
    
    .login-banner-text {
        font-size: 24px;
        max-width: calc(100% - 40px);
        left: 20px;
        bottom: 40px;
    }
    
    .login-form-container {
        padding: 40px 30px;
    }
    
    .login-form-wrapper {
        padding: 40px 30px;
    }
    
    .table {
        font-size: 14px;
    }
    
    .table > thead > tr > th,
    .table > tbody > tr > td {
        padding: 12px 8px;
    }
}

@media (max-width: 480px) {
    .login-banner {
        min-height: 250px;
        padding: 30px 20px;
    }
    
    .login-banner-logo {
        top: 15px;
        left: 15px;
    }
    
    .login-banner-logo img {
        height: 35px;
    }
    
    .login-banner-crm {
        font-size: 20px;
    }
    
    .login-banner-text {
        font-size: 20px;
        max-width: calc(100% - 30px);
        left: 15px;
        bottom: 30px;
    }
    
    .login-form-container {
        padding: 30px 20px;
    }
    
    .login-form-wrapper {
        padding: 30px 20px;
    }
}

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

.shadow-soft {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.shadow-medium {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

.rounded-soft {
    border-radius: 10px !important;
}

.rounded-medium {
    border-radius: 16px !important;
}

.transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ============================================
   HEADER - Modern Design
   ============================================ */

/* Header Navbar - Beyaz arka plan (logo hariç) */
.main-header > .navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e9ecef;
}

/* Sidebar toggle button - beyaz arka planda */
.main-header > .navbar .sidebar-toggle {
    color: #001746 !important;
}

.main-header > .navbar .sidebar-toggle:hover {
    color: #001746 !important;
    background-color: rgba(0, 23, 70, 0.05) !important;
}

/* Navbar links - beyaz arka planda */
.main-header > .navbar .nav > li > a {
    color: #001746 !important;
}

.main-header > .navbar .nav > li > a:hover,
.main-header > .navbar .nav > li > a:focus {
    color: #001746 !important;
    background-color: rgba(0, 23, 70, 0.05) !important;
}

/* Settings dropdown - beyaz */
.main-header > .navbar .navbar-custom-menu .dropdown-toggle {
    color: #001746 !important;
}

.main-header > .navbar .navbar-custom-menu .dropdown-toggle:hover {
    color: #001746 !important;
    background-color: rgba(0, 23, 70, 0.05) !important;
}

/* Dropdown menu - beyaz arka plan */
.main-header > .navbar .dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-header > .navbar .dropdown-menu > li > a {
    color: #495057 !important;
}

.main-header > .navbar .dropdown-menu > li > a:hover {
    background-color: rgba(0, 23, 70, 0.05) !important;
    color: #001746 !important;
}

/* Logo bölümü - Header'da tekrar oluşturuldu */
.main-header > .logo {
    background-color: #001746 !important;
    color: #ffffff !important;
    display: block !important;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    line-height: 50px;
    text-align: center;
    overflow: visible;
    position: fixed;
}

.main-header > .logo:hover {
    background-color: #001530 !important;
    color: #ffffff !important;
    text-decoration: none;
}

/* Logo görseli - Sidebar açıkken */
.main-header > .logo .logo-lg {
    display: block !important;
    line-height: 50px;
    vertical-align: middle;
    height: 50px;
    width: 100%;
}

.main-header > .logo .logo-lg img,
.main-header > .logo .logo-lg .logo-image {
    height: 40px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain;
    display: inline-block !important;
    vertical-align: middle;
    margin: 0;
    padding: 0;
}

/* AdminLTE'nin sidebar-mini logo-lg gizleme kuralını override et */
.sidebar-mini.sidebar-collapse .main-header .logo > .logo-lg {
    display: none !important;
}

/* Logo mini - Sidebar normal durumda gizli olmalı */
.main-header > .logo .logo-mini {
    display: none !important;
    font-size: 18px;
    font-weight: 600;
}

/* Sidebar-mini durumunda logo görselini gizle, YS göster */
.sidebar-mini .main-header > .logo {
    width: 50px;
    padding: 0;
}

.sidebar-mini .main-header > .logo .logo-lg {
    display: block !important;
}

.sidebar-mini .main-header > .logo .logo-mini {
    display: none !important;
}

/* Sidebar Logo */
.sidebar-logo {
    background-color: #001746 !important;
    color: #ffffff !important;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 230px;
    height: 50px;
    z-index: 812;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-logo:hover {
    background-color: #001530 !important;
    color: #ffffff !important;
    text-decoration: none;
}

.sidebar-logo .logo-mini {
    display: none;
}

.sidebar-logo .logo-lg {
    display: block;
    font-size: 18px;
    font-weight: 600;
}

.sidebar-mini .sidebar-logo {
    width: 50px;
}

.sidebar-mini .sidebar-logo .logo-mini {
    display: block;
    font-size: 18px;
    font-weight: 600;
}

.sidebar-mini .sidebar-logo .logo-lg {
    display: block;
}

/* ============================================
   HEADER USER PANEL - Modern Design
   ============================================ */

.header-user-panel {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.header-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-user-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.header-user-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.header-user-name {
    display: flex;
    align-items: center;
}

.header-user-name span {
    color: #001746;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .header-user-name {
        display: none;
    }
    
    .header-user-image {
        width: 35px;
        height: 35px;
    }
}

/* ============================================
   SIDEBAR - Modern Design
   ============================================ */

.main-sidebar,
.left-side {
    background-color: #001746 !important;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 810;
}

.sidebar {
    background-color: #001746 !important;
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: visible;
    padding-top: 10px;
    padding-bottom: 80px;
}

/* User Panel */
.user-panel {
    padding: 20px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
}

.user-panel.sidebar-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 230px;
    border-bottom: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0;
    margin-top: auto;
    background-color: #001746;
    z-index: 811;
    padding: 15px;
    display: flex;
    align-items: center;
    min-height: 70px;
}

.sidebar-mini .user-panel.sidebar-bottom {
    width: 50px;
}

.sidebar-mini .user-panel.sidebar-bottom > .info {
    display: none;
}

.user-panel > .info {
    color: #ffffff;
    padding-left: 15px;
    display: block;
    visibility: visible;
    opacity: 1;
}

.user-panel.sidebar-bottom > .info {
    flex: 1;
    overflow: hidden;
}

.user-panel > .info > p {
    font-weight: 600;
    margin-bottom: 5px;
    color: #ffffff;
}

.user-panel > .info > a {
    color: #ffffff;
    font-size: 12px;
    text-decoration: none;
    display: block;
    margin-top: 3px;
    transition: color 0.3s ease;
}

.user-panel > .info > a:hover {
    color: #ffffff;
}

.user-panel > .image {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: block;
}

.user-panel > .image img {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
    border-radius: 50%;
    object-fit: cover;
}

.user-panel > .image img:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.user-panel.sidebar-bottom > .image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

/* Sidebar Menu */
.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px;
}

.sidebar-menu > li {
    margin: 0;
    padding: 0;
}

.sidebar-menu > li > a {
    color: #ffffff;
    padding: 14px 15px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    border-bottom: none !important;
    font-weight: 400;
}

.skin-blue .sidebar-menu > li > a {
    color: #ffffff !important;
}

.sidebar-menu > li > a:hover {
    background-color: #001746 !important;
    color: #ffffff;
    border-left-color: rgba(255, 255, 255, 0.15);
}

.skin-blue .sidebar-menu > li:hover > a {
    background-color: #001746 !important;
    color: #ffffff !important;
}

.sidebar-menu > li.active > a {
    background-color: #001746 !important;
    color: #0077f1 !important;
    border-left-color: rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

.skin-blue .sidebar-menu > li.active > a {
    background-color: #001746 !important;
    color: #0077f1 !important;
}

.skin-blue .sidebar-menu > li:hover > a,
.skin-blue .sidebar-menu > li.active > a {
    background-color: #001746 !important;
    background: #001746 !important;
}

.sidebar-menu > li.active > a:hover {
    background-color: #001746 !important;
    color: #0077f1 !important;
}

.skin-blue .sidebar-menu > li.active > a:hover {
    background-color: #001746 !important;
    color: #0077f1 !important;
}

.sidebar-menu > li > a > i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
    font-size: 16px;
    color: #ffffff;
}

.sidebar-menu > li > a > .fa-angle-left,
.sidebar-menu > li > a > .fa-angle-down {
    margin-left: auto;
    margin-right: 0;
    transition: transform 0.3s ease;
}

.sidebar-menu > li.active > a > .fa-angle-left {
    transform: rotate(-90deg);
}

/* Treeview Menu */
.treeview-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #001746 !important;
    display: none;
}

.sidebar-menu > li.active > .treeview-menu {
    display: block;
    background-color: #001746 !important;
}

.treeview-menu > li > a {
    color: #ffffff;
    padding: 10px 15px 10px 45px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    background-color: #001746 !important;
    border-bottom: none !important;
}

.skin-blue .treeview-menu > li > a {
    color: #ffffff !important;
}

.treeview-menu > li > a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding-left: 50px;
}

.skin-blue .treeview-menu > li > a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.treeview-menu > li.active > a {
    background-color: #001746 !important;
    color: #0077f1 !important;
    font-weight: 500;
}

.skin-blue .treeview-menu > li.active > a {
    color: #0077f1 !important;
}

.treeview-menu > li.active > a:hover {
    background-color: #001746 !important;
    color: #0077f1 !important;
}

.skin-blue .treeview-menu > li.active > a:hover {
    color: #0077f1 !important;
}

.treeview-menu > li > a > i {
    width: 16px;
    margin-right: 10px;
    text-align: center;
    font-size: 12px;
    color: #ffffff;
}

/* Sidebar Header */
.sidebar-menu > li.header {
    padding: 15px 15px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    background-color: transparent;
}

/* Skin-blue sidebar border-bottom kaldır */
.skin-blue .sidebar a {
    border-bottom: none !important;
}

.sidebar a {
    border-bottom: none !important;
}

/* Icon Updates for FontAwesome 6 */
.sidebar-menu .fa-dashboard,
.sidebar-menu .fa-tachometer {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.sidebar-menu .fa-circle-o,
.sidebar-menu .fa-circle {
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
}

/* Responsive Sidebar */
@media (max-width: 767px) {
    .main-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px !important;
    }
    
    .main-sidebar.sidebar-open {
        transform: translateX(0);
    }
    
    /* Sidebar Logo - Mobile - width: 100% of sidebar */
    .sidebar-logo {
        width: 100% !important;
        left: 0 !important;
    }
    
    .sidebar-logo .logo-lg {
        font-size: 16px;
    }
    
    .sidebar-logo .logo-mini {
        display: block !important;
        font-size: 16px;
    }
    
    /* User Panel - Mobile - width: 100% of sidebar */
    .user-panel.sidebar-bottom {
        width: 100% !important;
        left: 0 !important;
    }
    
    /* Sidebar Menu - Mobile */
    .sidebar-menu {
        padding-bottom: 80px;
    }
    
    /* Sidebar width on mobile */
    .left-side {
        width: 280px !important;
    }
}

@media (min-width: 768px) {
    /* Sidebar Logo - Desktop - width: 100% of sidebar */
    .sidebar-logo {
        width: 230px;
    }
    
    /* User Panel - Desktop - width: 100% of sidebar */
    .user-panel.sidebar-bottom {
        width: 230px;
    }
    
    /* Sidebar Mini - Desktop - width: 100% of sidebar */
    .sidebar-mini .sidebar-logo {
        width: 50px;
    }
    
    .sidebar-mini .user-panel.sidebar-bottom {
        width: 50px;
    }
}

/* ============================================
  HOME DASHBOARD - Minimal Layout
  ============================================ */

.welcome-strip {
    position: relative;
    min-height: 200px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 20px 24px;
    color: #ffffff;
    background-image: url('/images/landing_background.jpg'), url('/images/created_by_yilmak_crm.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top left;
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.welcome-strip h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.welcome-strip p {
    margin: 6px 0 0;
    opacity: 0.9;
    font-size: 13px;
}

.welcome-user {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.welcome-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.exchange-summary-card {
    min-height: 154px;
    display: flex;
    flex-direction: column;
}

.exchange-headline {
    font-size: 13px;
    color: #7a869a;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.exchange-rate-item {
    background: #f8fbff;
    border: 1px solid #edf1f7;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
}

.exchange-status {
    margin-top: auto;
    padding-top: 10px;
}

.exchange-status-text {
    font-size: 12px;
    color: #7a869a;
}

.welcome-quick-access {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.welcome-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 23, 70, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
}

.welcome-quick-btn:hover,
.welcome-quick-btn:focus {
    color: #ffffff;
    background: rgba(0, 23, 70, 0.95);
}

.activity-user-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #dfe7f3;
    flex-shrink: 0;
}

.activity-text {
    font-weight: 500;
    color: #2e3a4d;
}

.activity-avatar-lg {
    width: 42px;
    height: 42px;
    border: 2px solid #e1eaf7;
}

.control-sidebar {
    width: 360px !important;
    right: -360px;
    position: fixed !important;
    top: 50px;
    bottom: 0;
    height: calc(100vh - 50px);
    overflow: hidden;
    z-index: 1040;
    padding-top: 0 !important;
}

.control-sidebar-bg {
    width: 360px !important;
    right: -360px;
}

.control-sidebar.control-sidebar-open,
.control-sidebar-open .control-sidebar,
.control-sidebar-open .control-sidebar-bg {
    right: 0;
}

.control-sidebar .tab-pane {
    padding: 12px;
}

.control-sidebar .control-sidebar-heading {
    margin-top: 0;
}

.control-sidebar-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.control-sidebar-close-btn {
    color: #51617a;
    font-size: 16px;
    line-height: 1;
    padding: 4px;
}

.control-sidebar-close-btn:hover,
.control-sidebar-close-btn:focus {
    color: #1f2d3d;
}

.activity-drawer-scroll {
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    padding-right: 4px;
}

.activity-drawer-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: #f7faff;
    border: 1px solid #e2ebf8;
}

.activity-drawer-content {
    min-width: 0;
}

.activity-drawer-content .activity-text {
    font-size: 13px;
    line-height: 1.45;
}

.activity-drawer-content .activity-text a {
    color: #0f4aa1;
    font-weight: 700;
}

.activity-time {
    margin-top: 6px;
    color: #74839a;
    font-size: 12px;
}

.dashboard-card {
    border-radius: 14px;
    background: #ffffff;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #edf1f7;
}

.rate-label {
    font-size: 12px;
    color: #7a869a;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.rate-value {
    font-size: 25px;
    line-height: 1;
    font-weight: 700;
    color: #1f2d3d;
}

.kpi-value {
    font-size: 26px;
    line-height: 1.1;
    margin: 0 0 6px 0;
    font-weight: 700;
    color: #1f2d3d;
}

.kpi-title {
    color: #7a869a;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0;
}

.kpi-card {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: none;
    width: 100%;
    margin-bottom: 0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.kpi-card .kpi-value {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.kpi-card .kpi-title {
    color: rgba(255, 255, 255, 0.9);
}

.kpi-bg-icon {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 52px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.16);
    pointer-events: none;
}

.kpi-bg-icon-light {
    color: rgba(0, 23, 70, 0.1);
}

.kpi-soft-1 {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.kpi-soft-2 {
    background: linear-gradient(135deg, #06b6d4 0%, #0e7490 100%);
}

.kpi-soft-3 {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

.kpi-soft-4 {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.kpi-grid-row {
    display: flex;
    flex-wrap: wrap;
}

.kpi-grid-col {
    display: flex;
    margin-bottom: 16px;
}

.quick-link {
    display: block;
    border: 1px solid #edf1f7;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    color: #1f2d3d;
    background: #ffffff;
}

.quick-link:hover {
    color: #001746;
    background: #f7f9fc;
    border-color: #dbe3ef;
}

.quick-link .fa {
    margin-right: 8px;
}

@media (max-width: 767px) {
    .welcome-strip {
        min-height: 125px;
        padding: 16px;
    }

    .welcome-strip h2 {
        font-size: 20px;
    }

    .welcome-avatar {
        width: 48px;
        height: 48px;
    }

    .welcome-strip {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .welcome-quick-access {
        justify-content: flex-start;
    }

    .kpi-card {
        min-height: 150px;
    }

    .control-sidebar {
        width: 300px !important;
        right: -300px;
        top: 50px;
        bottom: 0;
        height: calc(100vh - 50px);
    }

    .control-sidebar-bg {
        width: 300px !important;
        right: -300px;
    }
}
