 :root {
            --primary-color: #172d4c;
            --accent-color: #00fefb;
             --white: #ffffff;
            --primary: #172d4c;
            --primary-light: #00fefb;
            --primary-dark: #00fefb;
            --secondary: #F59E0B;
            --accent: #10B981;
            --gray-50: #F9FAFB;
            --gray-100: #F3F4F6;
            --gray-200: #E5E7EB;
            --gray-300: #D1D5DB;
            --gray-400: #9CA3AF;
            --gray-500: #6B7280;
            --gray-600: #4B5563;
            --gray-700: #374151;
            --gray-800: #1F2937;
            --gray-900: #111827;
            --white: #FFFFFF;
            --danger: #EF4444;
            --warning: #F59E0B;
            --success: #10B981;
            --info: #3B82F6;
        }

  
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--gray-50);
            color: var(--gray-700);
            line-height: 1.4;
        }

        /* LOGIN SCREEN */
        .login-container {
            background: linear-gradient(135deg, var(--primary-color) 0%, rgb(2 2 51) 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
        }


        .login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%2300fefb" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,117.3C1248,117,1344,139,1392,149.3L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    pointer-events: none;
}

        .login-card {
            border-radius: 24px;
            box-shadow: 10px 40px 45px -5px rgba(254, 251, 251, 0.1), 10px 40px 40px -5px rgba(254, 254, 254, 0.04);
            overflow: hidden;
            width: 100%;
            max-width: 420px;
            position: relative;
        }

        .login-header {
            
            padding: 20px 20px 20px;
            text-align: center;
            color: var(--white);
        }

        .login-header img {
            width: 300px;
            height: 200px;
        }
        
             .login-header h1 {
            font-size: 25px;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .login-header p {
            color: var(--gray-300);
            font-size: 13px;
        }

        .login-form {
            padding: 40px;
        }

        .form-group {
            margin-bottom: 24px;
        }

        .form-group label {
            display: block;
            font-weight: 600;
            font-size: 12px;
            color: #00fefb;
            margin-bottom: 8px;
        }

        .input-wrapper {
            position: relative;
        }

        .input-wrapper i {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray-400);
            font-size: 14px;
        }

        .form-input {
            width: 100%;
            padding: 16px 16px 16px 48px;
            border: 2px solid var(--gray-200);
            border-radius: 12px;
            font-size: 14px;
            transition: all 0.2s ease;
            background: var(--white);
            color: var(--gray-700);
        }

        .form-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }

        .login-btn {
            width: 100%;
            padding: 16px;
            background: #172d4c;
            color: #00fefb;
            border: none;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .login-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 10px 25px -5px #00fefb;
        }

        /* MAIN APP */
        .app-container {
            display: none;
            min-height: 100vh;
            background: var(--gray-50);
        }

        /* NAVBAR */
       .navbar {
        position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    color: white;
    background: #172d4c;
    border-bottom: 1px solid var(--gray-200);
    padding: 0 24px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

        .navbar-brand {
            display: flex;
            align-items: center;
            gap: 18px;
            font-weight: 700;
            font-size: 18px;
            color: white;
        }

        .navbar-brand img {
            width: 250px;
            height: 100px;
        }

        .navbar-user {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            background: var(--gray-200);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gray-600);
            font-size: 14px;
        }

        .logout-btn {
            padding: 8px 16px;
            background: var(--danger);
            color: var(--white);
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .logout-btn:hover {
            background: #DC2626;
            transform: translateY(-1px);
        }

        /* LAYOUT */
        .app-layout {
            display: flex;
            height: calc(100vh - 2px);
        }

       

        .sidebar-menu {
            padding: 100px 0;
        }

        .menu-section {
            margin-bottom: 24px;
        }

        .menu-section-title {
            padding: 0 24px 8px;
            font-size: 11px;
            font-weight: 600;
            color: var(--gray-400);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .menu-item {
            display: flex;
            align-items: center;
            padding: 12px 24px;
            color: var(--gray-600);
            text-decoration: none;
            transition: all 0.2s ease;
            cursor: pointer;
            border-left: 3px solid transparent;
            position: relative;
        }

        .menu-item:hover {
            background: var(--gray-50);
            color: var(--gray-700);
        }

        .menu-item.active {
            background: rgba(79, 70, 229, 0.05);
            color: var(--primary);
            border-left-color: var(--primary);
            font-weight: 600;
        }

        .menu-item i {
            width: 20px;
            font-size: 16px;
            margin-right: 12px;
        }

        .menu-item .arrow {
            margin-left: auto;
            font-size: 11px;
            transition: transform 0.2s ease;
        }

        .menu-item.expanded .arrow {
            transform: rotate(90deg);
        }

        .submenu {
            background: var(--gray-50);
            display: none;
        }

        .submenu.show {
            display: block;
        }

        .submenu-item {
            display: flex;
            align-items: center;
            padding: 10px 24px 10px 56px;
            color: var(--gray-500);
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 12px;
        }

        .submenu-item:hover {
            background: var(--gray-100);
            color: var(--gray-700);
        }

        .submenu-item.active {
            color: var(--primary);
            font-weight: 500;
        }

        /* MAIN CONTENT */
        .main-content {
            flex: 1;
            
        }

        .page-header { 
           margin-top: 20px;
        }

        .page-title {
            
            font-size: 28px;
            font-weight: 700;
            color: var(--gray-900);
            
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .page-title i {
            color: var(--primary);
        }

        .page-subtitle {
            color: var(--gray-500);
            font-size: 14px;
        }

        /* CARDS */
        .card {
            background: var(--white);
            border-radius: 16px;
            box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
            border: 1px solid var(--gray-200);
            overflow: hidden;
            margin-bottom: 5px;
        }

        .card-header {
            padding: 14px;
            border-bottom: 1px solid var(--gray-200);
        }

        .card-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--gray-900);
            margin-bottom: 4px;
        }

        .card-subtitle {
            color: var(--gray-500);
            font-size: 12px;
        }

        .card-body {
            padding: 8px;
        }

        /* STATS CARDS */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 10px;
            margin-bottom: 5px;
        }

        .stat-card {
            background: var(--white);
            border-radius: 16px;
            padding: 24px;
            border: 1px solid var(--gray-200);
            transition: all 0.2s ease;
            position: relative;
            overflow: hidden;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
        }

        .stat-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.1);
        }

        .stat-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 16px;
            font-size: 18px;
            color: var(--white);
        }

        .stat-icon.primary { background: var(--primary); }
        .stat-icon.success { background: var(--success); }
        .stat-icon.warning { background: var(--warning); }
        .stat-icon.info { background: var(--info); }

        .stat-value {
            font-size: 28px;
            font-weight: 700;
            color: var(--gray-900);
            margin-bottom: 4px;
        }

        .stat-label {
            color: var(--gray-500);
            font-size: 12px;
            font-weight: 500;
        }

        /* FORMS */
        .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 24px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            font-weight: 600;
            font-size: 12px;
            color: var(--gray-700);
            margin-bottom: 6px;
        }

        .form-control {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid var(--gray-200);
            border-radius: 10px;
            font-size: 12px;
            transition: all 0.2s ease;
            background: var(--white);
            color: var(--gray-700);
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }

        /* BUTTONS */
        .btn {
            color: white;
            background-color:#172d4c;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 24px;
            border: none;
            border-radius: 10px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
        }

        .btn:hover {
            transform: translateY(-1px);
        }

        .btn-primary {
            background: var(--primary);
            color: var(--white);
            box-shadow: 0 2px 4px -1px rgba(79, 70, 229, 0.3);
        }

        .btn-primary:hover {
            background: var(--primary-dark);
            box-shadow: 0 4px 12px -2px rgba(79, 70, 229, 0.4);
        }

        .btn-success {
            background: var(--success);
            color: var(--white);
            box-shadow: 0 2px 4px -1px rgba(16, 185, 129, 0.3);
        }

        .btn-success:hover {
            background: #059669;
            box-shadow: 0 4px 12px -2px rgba(16, 185, 129, 0.4);
        }

        .btn-warning {
            background: var(--warning);
            color: var(--white);
            box-shadow: 0 2px 4px -1px rgba(245, 158, 11, 0.3);
        }

        .btn-warning:hover {
            background: #D97706;
            box-shadow: 0 4px 12px -2px rgba(245, 158, 11, 0.4);
        }

        .btn-danger {
            background: var(--danger);
            color: var(--white);
            box-shadow: 0 2px 4px -1px rgba(239, 68, 68, 0.3);
        }

        .btn-danger:hover {
            background: #DC2626;
            box-shadow: 0 4px 12px -2px rgba(239, 68, 68, 0.4);
        }

        .btn-outline {
            background: transparent;
            border: 2px solid var(--gray-300);
            color: var(--gray-700);
        }

        .btn-outline:hover {
            background: var(--gray-50);
            border-color: var(--gray-400);
        }

        .btn-sm {
            padding: 8px 16px;
            font-size: 11px;
        }

        /* TABLES */
        .table-container {
            background: var(--white);
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--gray-200);
        }

        .table {
            width: 100%;
            border-collapse: collapse;
        }

        .table th,
        .table td {
            padding: 16px 20px;
            text-align: left;
            border-bottom: 1px solid var(--gray-200);
        }

        .table th {
            background: var(--gray-50);
            font-weight: 600;
            font-size: 11px;
            color: var(--gray-700);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .table td {
            color: var(--gray-600);
            font-size: 12px;
        }

        .table tbody tr:hover {
            background: var(--gray-50);
        }

        .table tbody tr:last-child td {
            border-bottom: none;
        }

        /* ACTION BUTTONS IN TABLE */
        .action-buttons {
            display: flex;
            gap: 8px;
        }

        .action-btn {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .action-btn.edit {
            background: var(--info);
            color: var(--white);
        }

        .action-btn.delete {
            background: var(--danger);
            color: var(--white);
        }

        .action-btn.view {
            background: var(--success);
            color: var(--white);
        }

        .action-btn:hover {
            transform: scale(1.1);
        }

        /* FILTERS */
        .filter-bar {
            background: var(--white);
            padding: 10px;
            border-radius: 12px;
            border: 1px solid var(--gray-200);
                    }

        .filter-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            align-items: end;
        }

        /* BADGES */
        .badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .badge.primary {
            background: rgba(79, 70, 229, 0.1);
            color: var(--primary);
        }

        .badge.success {
            background: rgba(16, 185, 129, 0.1);
            color: var(--success);
        }

        .badge.warning {
            background: rgba(245, 158, 11, 0.1);
            color: var(--warning);
        }

        .badge.danger {
            background: rgba(239, 68, 68, 0.1);
            color: var(--danger);
        }

        .badge.info {
            background: rgba(59, 130, 246, 0.1);
            color: var(--info);
        }

   
.modal * {
    animation: none !important;
    transition: none !important;
}

body.modal-open {
    overflow: hidden !important;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal.show {
    display: flex !important;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}


.modal-close, .btn-outline {
    pointer-events: auto; /* Kapatma butonları ve diğer butonlar tıklanabilir */
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


     .modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: var(--gray-100);
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    /* pointer-events kaldırıldı */
    position: relative;
    z-index: 1051;
}

.modal-close:hover {
    background: var(--gray-200);
    transform: scale(1.1);
}

.modal-close:active {
    transform: scale(0.95);
}

.modal-body {
    padding: 24px;
    position: relative;
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Modal backdrop için ayrı class */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1049;
    display: none;
}

.modal-backdrop.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Tüm modal içindeki butonlar tıklanabilir */
.modal .btn,
.modal button,
.modal input,
.modal select,
.modal textarea,
.modal a {
    cursor: pointer;
    position: relative;
    z-index: 1052;
}

/* Modal açıkken body scroll'u engelle */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Birden fazla modal açıkken z-index yönetimi */
.modal.stacked {
    z-index: 1060;
}

.modal-backdrop.stacked {
    z-index: 1059;
}

/* Modal içindeki diğer elementler için z-index düzeltmesi */
.modal .dropdown,
.modal .tooltip,
.modal .popover {
    z-index: 1053;
}

/* Responsive modal ayarları */
@media (max-width: 768px) {
    .modal-content {
        width: 96vw !important;
        max-height: 92vh !important;
        padding: 8px;
        border-radius: 6px;
        margin: 10px;
    }

    .modal-header {
        padding: 12px;
    }

    .modal-title {
        font-size: 14px;
    }

    .modal-close {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .modal-body {
        padding: 12px;
    }

    .modal-footer {
        padding: 12px;
        flex-direction: column;
        gap: 8px;
    }

    .modal-footer button {
        width: 100%;
        padding: 8px;
        font-size: 11px;
    }
}

.modal * {
    transition: none !important;
}

.modal-close,
.modal .btn {
    transition: all 0.2s ease !important;
}

/* Debug için - eğer modal takılı kalırsa bu class'ı kullanabilirsiniz */
.modal.force-close {
    display: none !important;
}

/* Modal içinde scroll varken kapatma butonu sabit kalsın */
.modal-header.sticky {
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1054;
}

/* ESC tuşu ile kapatma göstergesi */
.modal-content::after {
    
    position: absolute;
    top: 8px;
    right: 50px;
    font-size: 8px;
    color: var(--gray-400);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .modal-content::after {
        display: none;
    }
}

        /* TREE VIEW */
        .tree-view {
            list-style: none;
            padding-left: 20px;
        }

        .tree-item {
            margin: 8px 0;
        }

        .tree-toggle {
            cursor: pointer;
            user-select: none;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            border-radius: 8px;
            transition: background 0.2s;
        }

        .tree-toggle:hover {
            background: var(--gray-100);
        }

        .tree-toggle i {
            transition: transform 0.2s;
            font-size: 10px;
        }

        .tree-toggle.expanded i {
            transform: rotate(90deg);
        }

        .tree-children {
            display: none;
            padding-left: 20px;
            margin-top: 4px;
        }

        .tree-children.show {
            display: block;
        }

        /* STATUS INDICATORS */
        .status-indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            display: inline-block;
            margin-right: 8px;
        }

        .status-indicator.active {
            background: var(--success);
        }

        .status-indicator.pending {
            background: var(--warning);
        }

        .status-indicator.completed {
            background: var(--info);
        }

        .status-indicator.cancelled {
            background: var(--danger);
        }

        /* TABS */
        .tabs {
            display: flex;
            gap: 8px;
            border-bottom: 2px solid var(--gray-200);
            margin-bottom: 24px;
        }

        .tab {
            padding: 12px 24px;
            background: none;
            border: none;
            color: var(--gray-600);
            font-weight: 500;
            cursor: pointer;
            position: relative;
            transition: all 0.2s ease;
        }

        .tab:hover {
            color: var(--gray-800);
        }

        .tab.active {
            color: var(--primary);
        }

        .tab.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--primary);
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        /* SEARCH BOX */
        .search-box {
            position: relative;
            width: 100%;
            max-width: 400px;
        }

        .search-box input {
            width: 100%;
            padding: 12px 16px 12px 44px;
            border: 2px solid var(--gray-200);
            border-radius: 10px;
            font-size: 12px;
        }

        .search-box i {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray-400);
        }

        /* NOTIFICATIONS */
        .notification {
            position: fixed;
            top: 24px;
            right: 24px;
            background: var(--white);
            border: 1px solid var(--gray-200);
            border-radius: 12px;
            padding: 16px 20px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
            z-index: 10000;
            transform: translateX(400px);
            transition: transform 0.3s ease;
            min-width: 320px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .notification.show {
            transform: translateX(0);
        }

        .notification.success {
            border-left: 4px solid var(--success);
        }

        .notification.error {
            border-left: 4px solid var(--danger);
        }

        .notification.warning {
            border-left: 4px solid var(--warning);
        }

        .notification.info {
            border-left: 4px solid var(--info);
        }

        .notification-icon {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            color: var(--white);
        }

        .notification.success .notification-icon { background: var(--success); }
        .notification.error .notification-icon { background: var(--danger); }
        .notification.warning .notification-icon { background: var(--warning); }
        .notification.info .notification-icon { background: var(--info); }

        .notification-content {
            flex: 1;
        }

        .notification-title {
            font-weight: 600;
            color: var(--gray-900);
            font-size: 10px;
            margin-bottom: 2px;
        }

        .notification-message {
            color: var(--gray-600);
            font-size: 11px;
        }

        /* EMPTY STATES */
        .empty-state {
            text-align: center;
            padding: 64px 32px;
            color: var(--gray-500);
        }

        .empty-state i {
            font-size: 50px;
            color: var(--gray-300);
            margin-bottom: 24px;
        }

        .empty-state h3 {
            font-size: 16px;
            color: var(--gray-700);
            margin-bottom: 8px;
        }

        .empty-state p {
            font-size: 12px;
            margin-bottom: 24px;
        }

        /* DROPDOWN */
        #userProfilePanel {
            display: none;
            position: absolute;
            top: 72px;
            right: 24px;
            background: #172d4c;
            border: 1px solid var(--gray-200);
            border-radius: 12px;
            padding: 16px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
            z-index: 1000;
            min-width: 150px;
        }

        #userProfilePanel.show {
            display: block !important;
        }

        #userProfilePanel div {
            padding: 8px 12px;
            cursor: pointer;
            border-radius: 8px;
            transition: background 0.2s;
        }

        #userProfilePanel div:hover {
            color: #172d4c;
            background: #00fefb;
        }

        /* RESPONSIVE */
        @media (max-width: 768px) {
            .sidebar {
                width: 100%;
                height: auto;
            }
            
            .app-layout {
                flex-direction: column;
            }
            
            .main-content {
                padding: 16px;
            }
            
            .stats-grid {
                grid-template-columns: 1fr;
            }
            
            .form-grid {
                grid-template-columns: 1fr;
            }
            
            .filter-grid {
                grid-template-columns: 1fr;
            }

            #userProfilePanel {
                right: 10px;
            }
        }

        /* UTILITIES */
        .hidden { display: none !important; }
        .flex { display: flex; }
        .items-center { align-items: center; }
        .justify-between { justify-content: space-between; }
        .gap-4 { gap: 16px; }
        .mb-6 { margin-bottom: 24px; }
        .text-sm { font-size: 12px; }
        .font-medium { font-weight: 500; }
        .text-gray-500 { color:white; }


        /* OFFER PREVIEW STYLES - Geliştirilmiş */
.offer-preview {
    font-family: 'Inter', sans-serif;
    padding: 40px;
    background: white;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.offer-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: start;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.offer-logo {
    text-align: left;
}

.offer-logo img {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
}

.offer-company-info {
    text-align: center;
    font-weight: 600;
}

.offer-company-name {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
}

.offer-company-details {
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.4;
}

.offer-client-info {
    text-align: right;
    font-size: 12px;
    color: var(--gray-700);
}

.offer-client-name {
    font-weight: 600;
    margin-bottom: 8px;
}

.offer-date-details {
    text-align: center;
    margin-bottom: 20px;
    font-size: 11px;
    color: var(--gray-500);
}

.offer-items {
    margin-bottom: 30px;
}

.offer-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.offer-table th,
.offer-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.offer-table th {
    background: var(--gray-50);
    font-weight: 600;
    font-size: 12px;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offer-table td {
    font-size: 12px;
    color: var(--gray-800);
}

.offer-raw-materials {
    font-size: 10px;
    color: var(--gray-600);
    background: var(--gray-50);
    padding: 8px;
    border-radius: 4px;
    margin-top: 4px;
    line-height: 1.3;
}

.offer-totals {
    text-align: right;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--gray-200);
}

.offer-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.offer-grand-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    border-top: 2px solid var(--primary);
    padding-top: 10px;
}

@media print {
    .modal-header, .modal-footer {
        display: none !important;
    }
    .offer-preview {
        padding: 20px;
        max-width: none;
    }
    .offer-logo img {
        max-width: 120px;
    }
}

@media (max-width: 768px) {
    .offer-header {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    .offer-client-info {
        text-align: center;
    }
    .offer-table {
        font-size: 10px;
    }
    .offer-table th, .offer-table td {
        padding: 8px;
    }
}


/* Üretim Takip ve Reçete için Yeni Stiller */
.production-detail-grid {
    display: grid;
    gap: 20px;
}

.approval-log {
    background: var(--gray-50);
    padding: 10px;
    border-radius: 8px;
    font-size: 8px;
}

.department-flow {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.department-step {
    padding: 5px 10px;
    background: var(--gray-200);
    border-radius: 20px;
    font-size: 10px;
}

.department-step.current {
    background: var(--primary);
    color: white;
}

.department-step.completed {
    background: var(--success);
    color: white;
}

.recipe-preview {
    border-left: 4px solid var(--primary);
    padding-left: 10px;
    margin: 10px 0;
}

/* Sevkiyat ve Raporlar için Yeni Stiller */
.shipment-table .badge {
    padding: 4px 8px;
    border-radius: 12px;
}

.report-card {
    margin-bottom: 20px;
}

.report-table th {
    background: var(--gray-100);
}

/* Filtreleme için Yeni Stiller */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    align-items: end;
}

.filter-bar .search-box {
    max-width: 300px;
}

.date-filter {
    display: flex;
    gap: 10px;
}

.date-filter input {
    width: 140px;
}

.btn-outline-sm {
    padding: 6px 12px;
    font-size: 10px;
}

/* Tablo responsive */
@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
    .shipment-table th:nth-child(3),
    .shipment-table td:nth-child(3) {
        display: none;  /* Müşteri sütunu mobil'de gizle */
    }
}

.section {
    margin-bottom: 20px;
}
.section-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}
.form-control {
    padding: 10px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    background: var(--white);
}
.form-control[readonly] {
    background: var(--gray-100);
}
.section {
    margin-bottom: 20px;
}
.section-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary);
}
.badge {
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 10px;
}
.badge.success {
    background: var(--success);
    color: var(--white);
}
.badge.warning {
    background: var(--warning);
    color: var(--white);
}

.user-activity-table {
    font-size: 12px;
}
.user-activity-table th {
    background: var(--primary-light);
    color: var(--white);
}
.user-activity-table td {
    border-bottom: 1px solid var(--gray-200);
}
.time-spent {
    color: var(--primary);
    font-weight: 500;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.activity-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
}
.activity-list li:last-child {
    border-bottom: none;
}
.user-activity-table {
    font-size: 12px;
    width: 100%;
    border-collapse: collapse;
}
.user-activity-table th {
    background: var(--primary-light, #3b82f6);
    color: var(--white, #ffffff);
    padding: 10px;
}
.user-activity-table td {
    border-bottom: 1px solid var(--gray-200, #e5e7eb);
    padding: 10px;
}
.time-spent {
    color: var(--primary, #2563eb);
    font-weight: 500;
}
.canvas-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.company-selection-modal {
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}
.suggestions-section h4 {
    margin-top: 20px;
    font-size: 12px;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 8px;
}
.suggestions-list {
    list-style: none;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
}
.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s;
}
.suggestion-item:hover {
    background: var(--gray-50);
}
.suggestion-item.favorite {
    background: var(--yellow-50);
    font-weight: bold;
}
.no-favorites {
    color: var(--gray-500);
    font-style: italic;
    padding: 10px;
}
.add-new-section {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}
.search-section {
    margin-bottom: 20px;
}
#companySelectionSearch {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
}
.btn.selected {
    background: var(--primary);
    color: white;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--gray-200);
    border-radius: 5px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 10px;
}
.btn-danger {
    background: var(--danger);
    color: var(--white);
}
.btn-danger:hover {
    background: #DC2626;
}/* Müşteri Ekleme Modalı - Kutu ve Kalın Border Tasarımı */
#addCompanyModal .modal-content {
    max-width: 650px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    padding: 30px;
    overflow: hidden;
}

#addCompanyModal .modal-header {
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-light);
    position: relative;
}

#addCompanyModal .modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    position: relative;
    z-index: 1;
}

#addCompanyModal .modal-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

#addCompanyModal .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--gray-500);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

#addCompanyModal .close-btn:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

#addCompanyModal .modal-body {
    padding: 30px 0;
}

#addCompanyModal .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

#addCompanyModal .form-group {
    background: var(--white);
    border: 3px solid var(--gray-300);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#addCompanyModal .form-group:hover {
    border-color: var(--primary-light);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#addCompanyModal .form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

#addCompanyModal .form-control {
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 13px;
    color: var(--gray-700);
    background: rgba(255, 255, 255, 0.95);
    width: 100%;
    transition: all 0.3s ease;
}

#addCompanyModal .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

#addCompanyModal textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

#addCompanyModal select.form-control {
    appearance: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%236B7280" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat right 12px center;
    background-size: 12px;
    padding-right: 40px;
}

#addCompanyModal input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--primary);
    margin-top: 6px;
    cursor: pointer;
}

#addCompanyModal input[type="checkbox"] + label {
    margin-left: 8px;
    font-weight: 500;
    color: var(--gray-600);
}

#addCompanyModal .form-group .form-control[type="file"] {
    padding: 12px;
    border: 2px dashed var(--gray-300);
    text-align: center;
    cursor: pointer;
}

#addCompanyModal .form-group .form-control[type="file"]:hover {
    border-color: var(--primary-light);
    background: var(--gray-50);
}

#addCompanyModal .modal-footer {
    padding-top: 20px;
    border-top: 3px solid var(--primary-light);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

#addCompanyModal .btn {
    padding: 12px 25px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#addCompanyModal .btn-success {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: 2px solid var(--primary);
}

#addCompanyModal .btn-success:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

#addCompanyModal .btn-outline {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
}

#addCompanyModal .btn-outline:hover {
    background: var(--gray-100);
    border-color: var(--primary);
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    #addCompanyModal .modal-content {
        max-width: 90%;
        padding: 20px;
    }
    #addCompanyModal .form-grid {
        grid-template-columns: 1fr;
    }
    #addCompanyModal .modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    #addCompanyModal .btn {
        width: 100%;
    }
}

.company-selection-modal {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
}

.company-selection-modal .search-section .input-wrapper {
    position: relative;
}

.company-selection-modal .search-section .input-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.company-selection-modal .search-section input {
    width: 100%;
    padding: 12px 12px 12px 36px;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    font-size: 12px;
    background: var(--white);
    transition: border-color 0.3s ease;
}

.company-selection-modal .search-section input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.company-selection-modal .table-container {
    margin-top: 20px;
}

.company-selection-modal .table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.company-selection-modal .table th,
.company-selection-modal .table td {
    padding: 15px;
    border: 3px solid var(--gray-200);
    text-align: left;
}

.company-selection-modal .table th {
    background: var(--gray-100);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    color: var(--gray-800);
}

.company-selection-modal .table td {
    background: var(--white);
    font-size: 12px;
    color: var(--gray-700);
}

.company-selection-modal .table tr:hover td {
    background: var(--gray-50);
}

.company-selection-modal .no-favorites {
    text-align: center;
    color: var(--gray-500);
    font-style: italic;
    padding: 20px;
    border: 3px solid var(--gray-200);
    background: var(--white);
    border-radius: 10px;
}

.company-selection-modal .add-new-section {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 3px solid var(--gray-200);
}

/* Bildirim stilleri */
.notification-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.notification-item.unread {
    font-weight: 500;
}

.notification-filters button.btn-primary {
    background: white;
    color: white;
}

.notification-btn:hover .fa-bell {
    color: white;
    animation: ring 1s ease-in-out;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
}


/* ============================================ */
/* MOBILE RESPONSIVE STYLES */
/* ============================================ */

/* Mobile menu toggle button için stil */


/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
}

/* MOBİL EKRANLAR (max-width: 768px) */
@media (max-width: 768px) {
    /* Genel Düzen */
    .app-layout {
        flex-direction: column;
        height: auto;
        overflow-x: hidden;
    }

    .main-content {
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    .sidebar-menu {
        padding: 40px 0;
    }

    .container {
        max-width: 100%;
        padding: 0 8px;
    }

    /* Butonlar */
    .btn, .action-btn, .preview-btn, .edit-btn {
        padding: 6px 10px; /* Küçük butonlar */
        font-size: 10px;
        min-height: 36px;
        border-radius: 6px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: auto;
        margin: 4px 2px;
        transition: all 0.2s ease;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
        text-align: center;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .btn:hover, .action-btn:hover, .preview-btn:hover, .edit-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

    /* Buton Renkleri */
    .btn-primary, .action-btn.edit {
        background-color: #3b82f6; /* Yumuşak mavi */
        border-color: #3b82f6;
        color: white;
    }

    .btn-success {
        background-color: #22c55e; /* Yumuşak yeşil */
        border-color: #22c55e;
        color: white;
    }

    .btn-danger {
        background-color: #ef4444; /* Yumuşak kırmızı */
        border-color: #ef4444;
        color: white;
    }

    .btn-outline {
        background-color: transparent;
        border: 1px solid #9ca3af;
        color: #1f2937;
    }

    /* Navbar */
    .navbar {
        height: 56px;
        padding: 0 8px;
    }

    .navbar-brand span {
        display: none;
    }

    .navbar-brand img {
        height: 80px;
        max-width: 140px;
        margin-top: 8px;
    }

    .navbar-user {
        gap: 6px;
        display: flex;
        align-items: center;
    }

    #userName {
        display: none;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .logout-btn {
        padding: 6px;
        font-size: 11px;
    }

    .logout-btn span {
        display: none;
    }

  
    .mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
    }
}

    /* Sidebar */
    .sidebar {
        position: fixed;
        top: 56px;
        left: -280px;
        width: 280px;
        height: calc(100vh - 56px);
        transition: left 0.3s ease;
        z-index: 999;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    }

    .sidebar.mobile-active {
        left: 0;
    }

    .sidebar-overlay.active {
        display: block;
    }

    /* Kartlar */
    .card {
        border-radius: 8px;
        margin-bottom: 12px;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    }

    .card-header {
        padding: 10px;
        font-size: 14px;
    }

    .card-title {
        font-size: 16px;
    }

    .card-body {
        padding: 10px;
    }

    .stat-card {
        padding: 12px;
    }

    /* Tablolar */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table {
        width: 100%;
        min-width: unset;
        border-collapse: collapse;
    }

    .table th, .table td {
        padding: 6px;
        font-size: 11px;
        text-align: left;
        vertical-align: middle;
        border-bottom: 1px solid #e5e7eb;
    }

    /* Üretim Listesi */
    #productionListTable table {
        min-width: unset;
    }

    #productionListTable .action-buttons {
        display: flex !important;
        flex-direction: row;
        gap: 4px;
        justify-content: center;
        flex-wrap: wrap;
    }

    #productionListTable .action-buttons button {
        padding: 5px 8px;
        font-size: 11px;
    }

    #productionListTable td:last-child {
        display: table-cell !important;
    }

    /* Sevkiyat Sayfaları */
    #sevkiyatEdilenTable, #sevkiyatBekleyenTable {
        display: table !important;
    }

    #sevkiyatEdilenTableBody td, #sevkiyatBekleyenTableBody td {
        font-size: 11px;
        padding: 5px;
    }

    #sevkiyatEdilenMessage, #sevkiyatBekleyenMessage {
        display: none !important;
    }

    .shipment-table th:nth-child(3), .shipment-table td:nth-child(3) {
        display: table-cell !important;
        min-width: 80px;
    }

    /* İş Emri Ver */
    #isEmriVerForm .form-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    #recipePreview, #stockStatus, #latestOrders {
        display: block !important;
        margin: 8px 0;
        padding: 8px;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        background: #f9fafb;
        font-size: 12px;
    }

    #recipePreview h3, #stockStatus h3, #latestOrders h3 {
        font-size: 13px;
        margin-bottom: 6px;
    }

    /* Teklif Hazırla */
    #offerProductsTable {
        min-width: unset;
    }

    #offerProductsTable select, #offerProductsTable input {
        font-size: 12px;
        padding: 6px;
    }

    .raw-materials-list {
        max-height: 100px;
        overflow-y: auto;
    }

    /* Ürün Ağacı */
    #productTableBody td {
        font-size: 11px;
        padding: 5px;
    }

    /* Firma Listesi */
    .company-selection-modal {
        width: 96vw;
    }

    .suggestions-list {
        max-height: 180px;
        overflow-y: auto;
    }

    /* Admin Panel */
    .admin-export-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* Bildirimler */
    #notificationsList .notification-item {
        padding: 8px;
        margin-bottom: 6px;
        border-radius: 6px;
        font-size: 11px;
        border-left: 3px solid #3b82f6;
    }

    .notification-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .notification-filters {
        flex-direction: column;
        gap: 6px;
    }

    #notificationModal .modal-content {
        width: 96vw;
    }

    /* İnsan Kaynakları */
    .leave-type-cards {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 6px;
    }

    .leave-type-card {
        padding: 6px;
        font-size: 10px;
        border-radius: 6px;
    }

    .leave-type-card i {
        font-size: 18px;
    }

    /* Modal */
    .modal-content {
        width: 96vw !important;
        max-height: 92vh !important;
        padding: 8px;
        border-radius: 6px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-header {
        padding: 8px;
    }

    .modal-title {
        font-size: 14px;
    }

    .modal-close {
        font-size: 18px;
        padding: 6px;
    }

    .modal-footer {
        flex-direction: column;
        gap: 6px;
    }

    .modal-footer button {
        width: 100%;
        padding: 6px;
        font-size: 12px;
    }

    /* Form Elemanları */
    input, select, textarea {
        font-size: 13px !important;
        padding: 8px;
        border-radius: 6px;
        border: 1px solid #d1d5db;
        width: 100%;
        box-sizing: border-box;
    }

    /* Filtreleme Barı */
    .filter-bar {
        padding: 10px;
        border-radius: 8px;
    }

    .filter-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .date-filter {
        flex-direction: column;
        gap: 6px;
    }

    .search-box input {
        font-size: 12px;
        padding: 8px;
    }

    .filter-bar button {
        padding: 6px 10px;
        font-size: 11px;
        border-radius: 6px;
    }

    /* Bildirim Butonu */
    .notification-btn {
        margin-right: 6px;
        padding: 6px;
    }

    .notification-btn .fa-bell {
        font-size: 18px;
    }

    #notificationBadge {
        width: 16px;
        height: 16px;
        font-size: 10px;
        line-height: 16px;
        top: -3px;
        right: -3px;
    }

    /* Tabs */
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 12px;
    }

    .tab {
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Login Sayfası */
    .login-header {
        padding: 20px 10px;
    }

    .login-form {
        padding: 15px 10px;
    }

    /* Page Header */
    .page-header {
       margin-top: 100px;
    }

    .page-title {
        font-size: 20px;
        flex-wrap: wrap;
    }

    .page-subtitle {
        font-size: 12px;
    }

    /* Scrollbar */
    ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }

    ::-webkit-scrollbar-thumb {
        background: #9ca3af;
        border-radius: 2px;
    }
}

/* KÜÇÜK MOBİL EKRANLAR (max-width: 480px) */
@media (max-width: 480px) {
    .btn, .action-btn, .preview-btn, .edit-btn {
        padding: 5px 8px;
        font-size: 11px;
        min-height: 32px;
    }

    .table th, .table td {
        font-size: 10px;
        padding: 4px;
    }
     .sidebar-menu {
        padding: 40px 0;
    }

    .card-title {
        font-size: 14px;
    }

    .card-subtitle {
        font-size: 11px;
    }

    .modal-title {
        font-size: 13px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-card {
        padding: 10px;
    }

    .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 10px;
    }

    .navbar {
        padding: 0 6px;
        height: 52px;
    }

    .navbar-brand img {
        height: 100px;
        max-width: 120px;
    }

    .notification-btn {
        margin-right: 4px;
        padding: 5px;
    }

    .notification-btn .fa-bell {
        font-size: 16px;
    }

    #notificationBadge {
        width: 14px;
        height: 14px;
        font-size: 9px;
        line-height: 14px;
    }

    .form-control {
        padding: 8px 10px;
        font-size: 13px;
    }

    .form-label {
        font-size: 12px;
    }

    .menu-item {
        padding: 6px 12px;
        font-size: 12px;
    }

    .menu-item i {
        font-size: 13px;
    }

    .submenu-item {
        padding: 5px 12px 5px 30px;
        font-size: 11px;
    }

    .leave-type-cards {
        grid-template-columns: 1fr;
    }

    .notification-item {
        font-size: 10px;
        padding: 6px;
    }
}

/* ÇOK KÜÇÜK EKRANLAR (max-width: 360px) */
@media (max-width: 360px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .navbar-brand img {
        height: 70px;
        max-width: 100px;
    }

    .user-avatar {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .table {
        min-width: 300px;
    }

    .page-title {
        font-size: 18px;
    }

    .modal-content {
        width: 98vw;
        margin: 2px;
    }

    .tab {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* TABLET VE ORTA EKRANLAR (max-width: 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .navbar-brand img {
        height: 130px;
        max-width: 180px;
        margin-top: 6px;
    }

    .sidebar {
        width: 260px;
    }

    .main-content {
        padding: 15px;
    }

    .btn, .action-btn, .preview-btn, .edit-btn {
        padding: 7px 12px;
        font-size: 13px;
        min-height: 38px;
    }

    .table th, .table td {
        font-size: 12px;
        padding: 6px;
    }

    .modal-content {
        width: 90vw !important;
        max-height: 90vh !important;
    }

    .card-title {
        font-size: 18px;
    }

    .modal-title {
        font-size: 16px;
    }
}

/* BÜYÜK EKRANLAR (32 inç ve üzeri, 1920px ve üstü) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .main-content {
        padding: 20px;
        max-width: 1600px;
        margin: 0 auto;
    }

    .btn, .action-btn, .preview-btn, .edit-btn {
        padding: 10px 16px;
        font-size: 15px;
        min-height: 44px;
        border-radius: 8px;
    }

    .table th, .table td {
        font-size: 16px;
        padding: 12px;
    }

    .card {
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .card-title {
        font-size: 20px;
    }

    .card-subtitle {
        font-size: 14px;
    }

    .form-grid {
        grid-template-columns: repeat(auto, 1fr);
        gap: 16px;
    }

    .filter-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .leave-type-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .leave-type-card {
        padding: 12px;
        font-size: 14px;
    }

    .modal-content {
        width: 80vw !important;
        max-width: 1200px;
        max-height: 85vh !important;
        padding: 20px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-footer button {
        padding: 10px;
        font-size: 16px;
    }

    input, select, textarea {
        font-size: 16px !important;
        padding: 12px;
        border-radius: 8px;
    }

    .notification-item {
        padding: 12px;
        font-size: 14px;
    }

    .page-title {
        font-size: 28px;
    }

    .page-subtitle {
        font-size: 16px;
    }
}

/* LANDSCAPE MODU (yatay ekran) */
@media (max-width: 768px) and (orientation: landscape) {
    .navbar {
        height: 50px;
    }

    .sidebar {
        top: 50px;
        height: calc(100vh - 50px);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .main-content {
        padding: 8px;
    }

    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* DOKUNMATİK CİHAZLAR */
@media (hover: none) and (pointer: coarse) {
    .btn, .action-btn, .preview-btn, .edit-btn, .menu-item, .submenu-item {
        min-height: 40px;
        font-size: 13px;
    }

    input, select, textarea, .form-control, .form-input {
        min-height: 44px;
        font-size: 14px !important;
    }

    .table th, .table td {
        min-height: 40px;
    }
}

/* YÜKSEK ÇÖZÜNÜRLÜKLÜ EKRANLAR */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card, .stat-card {
        border-width: 0.5px;
    }

    img {
        image-rendering: pixelated;
    }
}

/* PRINT STYLES */
@media print {
    .sidebar, .navbar, .btn, .action-btn, .preview-btn, .edit-btn, .action-buttons, .no-print, .modal-header, .modal-footer {
        display: none !important;
    }

    .main-content {
        padding: 0;
        margin: 0;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* Scrollbar Stili */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }

    ::-webkit-scrollbar-track {
        background: #f1f5f9;
    }

    ::-webkit-scrollbar-thumb {
        background: #9ca3af;
        border-radius: 2px;
    }
}

/* Bildirim Butonu */
.notification-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    margin-right: 12px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

#notificationBadge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    display: none;
}

@media (max-width: 768px) {
    .notification-btn {
        margin-right: 6px;
        padding: 5px;
    }

    .notification-btn .fa-bell {
        font-size: 16px;
    }

    #notificationBadge {
        width: 14px;
        height: 14px;
        font-size: 9px;
        line-height: 14px;
        top: -3px;
        right: -3px;
    }
}

@media (max-width: 480px) {
    .notification-btn {
        margin-right: 4px;
        padding: 4px;
    }

    .notification-btn .fa-bell {
        font-size: 14px;
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

/* Sidebar mobil ayarları */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block !important;
    }
    
    .sidebar {
        position: fixed;
        left: -280px;
        top: 80px;
        width: 280px;
        height: calc(100vh - 80px);
        z-index: 999;
        transition: left 0.3s ease;
        background: white;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .sidebar.mobile-active {
        left: 0;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .main-content {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
        background: none;
        border: none;
        color: white;
        font-size: 20px;
        cursor: pointer;
        padding: 6px;
        margin-right: 10px;
    }
}


/* Mobile menu toggle button - varsayılan olarak gizli */
.mobile-menu-toggle {
    display: none !important;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    margin-right: 10px;
}
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
        background: none;
        border: none;
        color: white;
        font-size: 20px;
        cursor: pointer;
        padding: 6px;
        margin-right: 10px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
    }
}


.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.category-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 15px;
  padding: 20px;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background: var(--gray-50);
  border-radius: 10px;
  border-left: 4px solid var(--primary);
}

/* Tab sistemi */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 20px;
}

.tab {
  padding: 12px 20px;
  border: none;
  background: var(--gray-100);
  color: var(--gray-600);
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab:hover {
  background: var(--gray-200);
  color: var(--gray-800);
}

.tab.active {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.tab-content {
  display: none;
  padding: 20px 0;
}

.tab-content.active {
  display: block;
}

/* Ürün tablosu özel stiller */
.product-table {
  font-size: 14px;
}

.product-table th {
  background: var(--primary);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
}

.product-table td {
  vertical-align: middle;
  padding: 16px 12px;
}

.technical-specs-cell {
  max-width: 200px;
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.4;
}

.raw-materials-cell {
  max-width: 180px;
  font-size: 12px;
  color: var(--gray-600);
}

.raw-materials-info {
  font-size: 10px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.recipe-badge {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-cell {
  font-size: 16px;
  font-weight: 600;
  color: var(--success);
}

/* Tehlikeli işlemler sekmesi */
.danger-zone {
  background: #fee;
  border: 2px solid #fcc;
  border-radius: 10px;
  padding: 20px;
}

.danger-zone h4 {
  color: #c33;
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.danger-zone p {
  color: #666;
  margin-bottom: 20px;
}

.danger-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Kategori kartları animasyon */
@keyframes categoryCardHover {
  from { transform: translateY(0); }
  to { transform: translateY(-5px); }
}

.category-card:hover {
  animation: categoryCardHover 0.3s ease forwards;
}

/* Modal içi tab sistemi */
.modal .tabs {
  margin: 0 -24px 20px -24px;
  padding: 0 24px;
  border-bottom: 2px solid var(--gray-200);
}

.modal .tab {
  border-radius: 0;
  border-bottom: 3px solid transparent;
}

.modal .tab.active {
  background: transparent;
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Responsive kategori kartları */
@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .category-card {
    padding: 15px;
  }
  
  .category-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .technical-specs-cell,
  .raw-materials-cell {
    max-width: 120px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .tabs {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .tabs::-webkit-scrollbar {
    display: none;
  }
  
  .tab {
    white-space: nowrap;
    min-width: auto;
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* Ürün detay modalı özel stiller */
.product-detail-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.product-price-display {
  text-align: right;
}

.product-price-display .price {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
}

.product-price-display .label {
  font-size: 12px;
  opacity: 0.8;
  margin: 0;
}

.info-box {
  padding: 10px;
  background: var(--gray-50);
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.info-box strong {
  color: var(--gray-900);
}

.raw-materials-list {
  max-height: 200px;
  overflow-y: auto;
  padding: 10px;
  background: var(--gray-50);
  border-radius: 8px;
}

.raw-material-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  background: white;
  border-radius: 6px;
  margin-bottom: 5px;
  border-left: 3px solid var(--info);
}

.raw-material-item:last-child {
  margin-bottom: 0;
}

/* Kategori ikonu stilleri */
.category-icon-wrapper {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.category-count {
  font-size: 24px;
  font-weight: bold;
}

.category-label {
  font-size: 12px;
  opacity: 0.8;
}

.category-description {
  margin-top: 8px;
  font-size: 11px;
  color: #888;
}

/* Geri dönüş butonu */
.back-to-categories {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  color: var(--gray-700);
  text-decoration: none;
  transition: all 0.2s;
}

.back-to-categories:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

/* Boş durum stilleri */
.empty-category {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-500);
}

.empty-category i {
  font-size: 48px;
  color: var(--gray-300);
  margin-bottom: 16px;
}

.empty-category h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--gray-600);
}

/* Tooltip stiller */
[title] {
  position: relative;
  cursor: help;
}

/* Loading state */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



/* Stok Kartları - Küçültülmüş Kategori Kartları */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    
}

.category-card {
    padding: 18px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 100px;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.category-icon-wrapper {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon-wrapper i {
    font-size: 20px !important;
}

.category-card h4 {
    font-size: 16px;
    margin: 0 0 6px 0;
    color: var(--gray-800);
}

.category-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.category-count {
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
}

.category-label {
    font-size: 11px;
    color: var(--gray-600);
    margin-top: 2px;
}

.category-description {
    margin-top: 8px;
    font-size: 11px;
    color: var(--gray-600);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobil için daha da küçült */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .category-card {
        padding: 12px;
        min-height: 85px;
    }
    
    .category-icon-wrapper {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }
    
    .category-icon-wrapper i {
        font-size: 16px !important;
    }
    
    .category-card h4 {
        font-size: 14px;
    }
    
    .category-count {
        font-size: 18px;
    }
    
    .category-label {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stock-detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.stock-detail-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.stock-detail-header .subtitle {
    opacity: 0.9;
    font-size: 14px;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.detail-info-item {
    background: var(--gray-50);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.detail-info-label {
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.detail-info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
}

/* Teknik Özellikler Tablosu */
.specifications-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.specifications-table tr {
    border-bottom: 1px solid var(--gray-300);
}

.specifications-table tr:last-child {
    border-bottom: none;
}

.specifications-table td {
    padding: 12px 20px;
}

.specifications-table tr:nth-child(odd) {
    background: var(--gray-100);
}

.specifications-table tr:nth-child(even) {
    background: white;
}

.specifications-table td:first-child {
    font-weight: 600;
    color: var(--gray-700);
    width: 40%;
}

.specifications-table td:last-child {
    color: var(--gray-800);
}

.description-section {
    background: linear-gradient(135deg, #f6f8fb 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    margin-top: 20px;
}

.description-section h4 {
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.description-text {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 14px;
}


.stock-form-header {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    margin: -24px -24px 24px -24px;
    padding: 20px 24px;
    color: white;
}

.stock-form-header h3 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section {
    background: var(--gray-50);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.form-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}


.spec-add-container {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 2px dashed var(--gray-300);
}

.spec-add-row {
    display: grid;
    grid-template-columns: 1fr 1fr 120px 50px;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.spec-item-row {
    display: grid;
    grid-template-columns: 1fr 1fr 120px 50px;
    gap: 10px;
    align-items: center;
    background: white;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    margin-bottom: 8px;
}

.spec-item-row:hover {
    background: var(--gray-50);
}

.btn-add-spec {
    background: var(--success);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-add-spec:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-remove-spec {
    background: var(--danger);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-remove-spec:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .detail-info-grid {
        grid-template-columns: 1fr;
    }
    
    .spec-add-row,
    .spec-item-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .specifications-table {
        font-size: 13px;
    }
    
    .specifications-table td {
        padding: 10px 15px;
    }
}


/* Modal Footer Buton Düzeni */
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--gray-50);
    border-top: 2px solid var(--gray-200);
}

.modal-footer .btn-danger {
    margin-right: auto;
}

.modal-footer .btn-success {
    margin-right: 10px;
}

/* Silme butonu stili */
.btn-danger {
    background: var(--danger);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}


@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.filter-bar {

    gap: 15px;
    align-items: center;
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
}

.search-box {
    flex: 1;
    position: relative;
}

.search-box input {
    width: 100%;
    padding-left: 40px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

/* Form kontrol stilleri */
.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

/* Buton iyileştirmeleri */
#companySelectionBtn.selected {
    background: #f0f9ff !important;
    border-color: #3b82f6 !important;
    color: #1e40af !important;
}

#companySelectionBtn.selected i {
    color: #3b82f6 !important;
}

#companySelectionBtn.selected span {
    color: #1e40af !important;
}

/* Teklif tablosu */
#offerProductsTable select,
#offerProductsTable input {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
}

#offerProductsTable .total-cell {
    font-weight: 600;
    color: #059669;
}

/* ============================================ */
/* YENİ DASHBOARD STİLLERİ */
/* ============================================ */

/* Hızlı Erişim Bölümü */
.quick-access-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h3 i {
    color: var(--primary);
    font-size: 20px;
}

/* Kısayol Grid */
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* Kısayol Kartları */
.shortcut-card {
    position: relative;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    color: white;
}

.shortcut-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shortcut-card:hover::before {
    opacity: 1;
}

.shortcut-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.shortcut-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.shortcut-icon i {
    font-size: 24px;
    color: white;
}

.shortcut-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: white;
}

.shortcut-info p {
    font-size: 12px;
    margin: 0;
    opacity: 0.9;
    color: white;
}

.remove-shortcut {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.shortcut-card:hover .remove-shortcut {
    opacity: 1;
}

.remove-shortcut:hover {
    background: rgba(239, 68, 68, 0.9);
    transform: scale(1.1);
}

/* Boş Kısayol Durumu */
.empty-shortcuts {
    text-align: center;
    padding: 60px 20px;
    background: var(--gray-50);
    border-radius: 16px;
    border: 2px dashed var(--gray-300);
}

.empty-shortcuts i {
    font-size: 48px;
    color: var(--gray-400);
    margin-bottom: 20px;
}

.empty-shortcuts p {
    color: var(--gray-600);
    margin-bottom: 20px;
    font-size: 16px;
}

/* Kısayol Seçici Grid */
.shortcut-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

/* Kısayol Seçici Kartları */
.shortcut-selector-card {
    position: relative;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shortcut-selector-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.shortcut-selector-card.selected {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.shortcut-selector-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shortcut-selector-icon i {
    font-size: 28px;
    color: white;
}

.shortcut-selector-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--gray-800);
}

.shortcut-selector-card p {
    font-size: 11px;
    margin: 0;
    color: var(--gray-600);
}

.selected-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    animation: bounceIn 0.3s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Modern İstatistik Kartları */
.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card-modern {
    border-radius: 16px;
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.stat-icon-modern {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.stat-icon-modern i {
    font-size: 28px;
    color: white;
}

.stat-content-modern {
    position: relative;
    z-index: 1;
}

.stat-value-modern {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

.stat-label-modern {
    font-size: 14px;
    opacity: 0.9;
    color: white;
}

/* Son İşlemler Bölümü */
.recent-actions-section {
    margin-bottom: 30px;
}

.recent-actions-list {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recent-action-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    transition: all 0.3s ease;
}

.recent-action-item:last-child {
    border-bottom: none;
}

.recent-action-item:hover {
    background: var(--gray-50);
}

.action-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.action-icon-wrapper.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.action-icon-wrapper.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.action-icon-wrapper.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.action-icon-wrapper i {
    font-size: 20px;
}

.action-content {
    flex: 1;
}

.action-content h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--gray-900);
}

.action-content p {
    font-size: 13px;
    margin: 0 0 4px 0;
    color: var(--gray-600);
}

.action-time {
    font-size: 12px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-time i {
    font-size: 11px;
}

.action-arrow {
    color: var(--gray-400);
    font-size: 14px;
    margin-left: 12px;
    transition: all 0.3s ease;
}

.recent-action-item:hover .action-arrow {
    transform: translateX(4px);
    color: var(--primary);
}

/* Boş Durum - Modern */
.empty-state-modern {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.empty-state-modern i {
    font-size: 64px;
    color: var(--gray-300);
    margin-bottom: 20px;
}

.empty-state-modern p {
    font-size: 16px;
    color: var(--gray-600);
    margin: 0;
}

/* Responsive Tasarım */
@media (max-width: 1024px) {
    .shortcuts-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }

    .stats-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .shortcut-selector-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .shortcuts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .shortcut-card {
        padding: 18px;
    }

    .shortcut-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }

    .shortcut-icon i {
        font-size: 20px;
    }

    .shortcut-info h4 {
        font-size: 14px;
    }

    .shortcut-info p {
        font-size: 11px;
    }

    .stats-grid-modern {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card-modern {
        padding: 20px;
    }

    .stat-icon-modern {
        width: 50px;
        height: 50px;
    }

    .stat-icon-modern i {
        font-size: 24px;
    }

    .stat-value-modern {
        font-size: 28px;
    }

    .stat-label-modern {
        font-size: 13px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-header h3 {
        font-size: 16px;
    }

    .recent-action-item {
        padding: 16px;
    }

    .action-icon-wrapper {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }

    .action-icon-wrapper i {
        font-size: 18px;
    }

    .action-content h4 {
        font-size: 14px;
    }

    .action-content p {
        font-size: 12px;
    }

    .shortcut-selector-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .shortcut-selector-card {
        padding: 15px 10px;
    }

    .shortcut-selector-icon {
        width: 50px;
        height: 50px;
    }

    .shortcut-selector-icon i {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .shortcuts-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .shortcut-card {
        padding: 16px;
    }

    .page-header {
        margin-bottom: 20px;
    }

    .page-title {
        font-size: 24px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .empty-shortcuts {
        padding: 40px 15px;
    }

    .empty-shortcuts i {
        font-size: 36px;
    }

    .empty-shortcuts p {
        font-size: 14px;
    }

    .empty-state-modern {
        padding: 40px 15px;
    }

    .empty-state-modern i {
        font-size: 48px;
    }

    .empty-state-modern p {
        font-size: 14px;
    }

    .shortcut-selector-grid {
        grid-template-columns: 1fr;
    }
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shortcut-card {
    animation: fadeInUp 0.4s ease forwards;
}

.shortcut-card:nth-child(1) { animation-delay: 0.1s; }
.shortcut-card:nth-child(2) { animation-delay: 0.2s; }
.shortcut-card:nth-child(3) { animation-delay: 0.3s; }
.shortcut-card:nth-child(4) { animation-delay: 0.4s; }
.shortcut-card:nth-child(5) { animation-delay: 0.5s; }
.shortcut-card:nth-child(6) { animation-delay: 0.6s; }

.stat-card-modern {
    animation: fadeInUp 0.4s ease forwards;
}

.stat-card-modern:nth-child(1) { animation-delay: 0.1s; }
.stat-card-modern:nth-child(2) { animation-delay: 0.2s; }
.stat-card-modern:nth-child(3) { animation-delay: 0.3s; }
.stat-card-modern:nth-child(4) { animation-delay: 0.4s; }

/* Loading Spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}

/* Scroll Bar Stilleri */
.shortcut-selector-grid::-webkit-scrollbar,
.recent-actions-list::-webkit-scrollbar {
    width: 6px;
}

.shortcut-selector-grid::-webkit-scrollbar-track,
.recent-actions-list::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 10px;
}

.shortcut-selector-grid::-webkit-scrollbar-thumb,
.recent-actions-list::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 10px;
}

.shortcut-selector-grid::-webkit-scrollbar-thumb:hover,
.recent-actions-list::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Dark Mode Support (isteğe bağlı) */
@media (prefers-color-scheme: dark) {
    .shortcut-card {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .stat-card-modern {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .recent-actions-list {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
}

/* Print Styles */
@media print {
    .quick-access-section,
    .section-header button {
        display: none !important;
    }

    .shortcut-card,
    .stat-card-modern {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Accessibility */
.shortcut-card:focus,
.shortcut-selector-card:focus,
.recent-action-item:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.remove-shortcut:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .shortcut-card,
    .stat-card-modern {
        border: 2px solid currentColor;
    }

    .shortcut-selector-card {
        border-width: 3px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .shortcut-card,
    .stat-card-modern,
    .recent-action-item,
    .action-arrow {
        animation: none;
        transition: none;
    }

    .shortcut-card:hover,
    .stat-card-modern:hover {
        transform: none;
    }
}


/* ============================================ */
/* YENİ DASHBOARD STİLLERİ - GÜNCELLENMIŞ */
/* ============================================ */


/* Hızlı Erişim Bölümü */
.quick-access-section {
    margin-bottom: 40px;
    padding: 0 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h3 i {
    color: var(--primary);
    font-size: 20px;
}

/* Kısayol Grid - Küçültülmüş ve Ortalanmış */
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Kısayol Kartları - Küçültülmüş */
.shortcut-card {
    position: relative;
    border-radius: 14px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    color: white;
    min-height: 140px;
}

.shortcut-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shortcut-card:hover::before {
    opacity: 1;
}

.shortcut-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.shortcut-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    backdrop-filter: blur(10px);
}

.shortcut-icon i {
    font-size: 20px;
    color: white;
}

.shortcut-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: white;
    line-height: 1.3;
}

.shortcut-info p {
    font-size: 11px;
    margin: 0;
    opacity: 0.9;
    color: white;
    line-height: 1.3;
}

.remove-shortcut {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    font-size: 11px;
}

.shortcut-card:hover .remove-shortcut {
    opacity: 1;
}

.remove-shortcut:hover {
    background: rgba(239, 68, 68, 0.9);
    transform: scale(1.1);
}

/* Boş Kısayol Durumu */
.empty-shortcuts {
    text-align: center;
    padding: 50px 20px;
    background: var(--gray-50);
    border-radius: 14px;
    border: 2px dashed var(--gray-300);
    max-width: 600px;
    margin: 0 auto;
}

.empty-shortcuts i {
    font-size: 42px;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.empty-shortcuts p {
    color: var(--gray-600);
    margin-bottom: 18px;
    font-size: 15px;
}

/* Kısayol Seçici Grid - Küçültülmüş */
.shortcut-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

/* Kısayol Seçici Kartları - Küçültülmüş */
.shortcut-selector-card {
    position: relative;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 140px;
}

.shortcut-selector-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.shortcut-selector-card.selected {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.shortcut-selector-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shortcut-selector-icon i {
    font-size: 24px;
    color: white;
}

.shortcut-selector-card h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--gray-800);
    line-height: 1.3;
}

.shortcut-selector-card p {
    font-size: 10px;
    margin: 0;
    color: var(--gray-600);
    line-height: 1.3;
}

.selected-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    animation: bounceIn 0.3s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* İstatistik Bölümü - Ortalanmış */
.stats-overview {
    margin-bottom: 40px;
    padding: 0 20px;
}

/* Modern İstatistik Kartları - Küçültülmüş */
.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card-modern {
    border-radius: 14px;
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    min-height: 140px;
}

.stat-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.stat-icon-modern {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    backdrop-filter: blur(10px);
}

.stat-icon-modern i {
    font-size: 24px;
    color: white;
}

.stat-content-modern {
    position: relative;
    z-index: 1;
}

.stat-value-modern {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

.stat-label-modern {
    font-size: 13px;
    opacity: 0.9;
    color: white;
}

/* Son İşlemler Bölümü - Ortalanmış */
.recent-actions-section {
    margin-bottom: 40px;
    padding: 0 20px;
}

.recent-actions-list {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-width: 1200px;
    margin: 0 auto;
}

.recent-action-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    transition: all 0.3s ease;
}

.recent-action-item:last-child {
    border-bottom: none;
}

.recent-action-item:hover {
    background: var(--gray-50);
}

.action-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
}

.action-icon-wrapper.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.action-icon-wrapper.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.action-icon-wrapper.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.action-icon-wrapper i {
    font-size: 18px;
}

.action-content {
    flex: 1;
}

.action-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--gray-900);
}

.action-content p {
    font-size: 12px;
    margin: 0 0 4px 0;
    color: var(--gray-600);
}

.action-time {
    font-size: 11px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-time i {
    font-size: 10px;
}

.action-arrow {
    color: var(--gray-400);
    font-size: 13px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.recent-action-item:hover .action-arrow {
    transform: translateX(4px);
    color: var(--primary);
}

/* Boş Durum - Modern */
.empty-state-modern {
    text-align: center;
    padding: 50px 20px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto;
}

.empty-state-modern i {
    font-size: 56px;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.empty-state-modern p {
    font-size: 15px;
    color: var(--gray-600);
    margin: 0;
}

/* Responsive Tasarım - Güncellenmiş */
@media (max-width: 1400px) {
   
    
}

@media (max-width: 1024px) {
    

    .quick-access-section,
    .stats-overview,
    .recent-actions-section {
        padding: 0 10px;
    }

    .shortcuts-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }

    .stats-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .shortcut-selector-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 768px) {
    #pageContent {
        padding: 0 15px;
    }

    .quick-access-section,
    .stats-overview,
    .recent-actions-section {
        padding: 0 5px;
        margin-bottom: 30px;
    }

    .shortcuts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .shortcut-card {
        padding: 16px;
        min-height: 130px;
    }

    .shortcut-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 10px;
    }

    .shortcut-icon i {
        font-size: 18px;
    }

    .shortcut-info h4 {
        font-size: 13px;
    }

    .shortcut-info p {
        font-size: 10px;
    }

    .stats-grid-modern {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card-modern {
        padding: 18px;
        min-height: 130px;
    }

    .stat-icon-modern {
        width: 46px;
        height: 46px;
    }

    .stat-icon-modern i {
        font-size: 22px;
    }

    .stat-value-modern {
        font-size: 28px;
    }

    .stat-label-modern {
        font-size: 12px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-header h3 {
        font-size: 16px;
    }

    .recent-action-item {
        padding: 14px 16px;
    }

    .action-icon-wrapper {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }

    .action-icon-wrapper i {
        font-size: 16px;
    }

    .action-content h4 {
        font-size: 13px;
    }

    .action-content p {
        font-size: 11px;
    }

    .shortcut-selector-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .shortcut-selector-card {
        padding: 14px 10px;
        min-height: 130px;
    }

    .shortcut-selector-icon {
        width: 44px;
        height: 44px;
    }

    .shortcut-selector-icon i {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    #pageContent {
        padding: 0 10px;
    }

    .shortcuts-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .shortcut-card {
        padding: 14px;
        min-height: 120px;
    }

    .page-header {
        margin-bottom: 20px;
        padding: 0 5px;
    }

    .page-title {
        font-size: 22px;
    }

    .page-subtitle {
        font-size: 13px;
    }

    .empty-shortcuts {
        padding: 40px 15px;
    }

    .empty-shortcuts i {
        font-size: 38px;
    }

    .empty-shortcuts p {
        font-size: 13px;
    }

    .empty-state-modern {
        padding: 40px 15px;
    }

    .empty-state-modern i {
        font-size: 46px;
    }

    .empty-state-modern p {
        font-size: 13px;
    }

    .shortcut-selector-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll Bar Stilleri */
.shortcut-selector-grid::-webkit-scrollbar {
    width: 6px;
}

.shortcut-selector-grid::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 10px;
}

.shortcut-selector-grid::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 10px;
}

.shortcut-selector-grid::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}


/* ============================================ */
/* İKİ KOLONLU LAYOUT - YAN YANA */
/* ============================================ */

.dashboard-two-column {
    
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    padding: 0 20px;
}

/* Sol Kolon: Genel Bakış */
.dashboard-two-column .stats-overview {
    padding: 0;
}

/* Sağ Kolon: Son İşlemler */
.dashboard-two-column .recent-actions-section {
    padding: 0;
}

/* İstatistik Kartları - 2'şer Alt Alta */
.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.stat-card-modern {
    border-radius: 14px;
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    min-height: 130px;
    cursor: pointer;
}

.stat-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.stat-hover-arrow {
    position: absolute;
    bottom: 15px;
    right: 15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
}

.stat-card-modern:hover .stat-hover-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* Son İşlemler - Maksimum Yükseklik */
.recent-actions-list {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-height: 600px;
    overflow-y: auto;
}

.recent-action-item {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.recent-action-item:last-child {
    border-bottom: none;
}

.recent-action-item:hover {
    background: var(--gray-50);
}

/* Detay Sayfa Stilleri */
.activity-detail-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-detail-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.activity-detail-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.activity-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon-wrapper.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.activity-icon-wrapper.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.activity-icon-wrapper.primary {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.activity-icon-wrapper i {
    font-size: 22px;
}

.activity-content {
    flex: 1;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.activity-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--gray-900);
}

.activity-date {
    font-size: 12px;
    color: var(--gray-500);
}

.activity-content p {
    font-size: 14px;
    margin: 0 0 10px 0;
    color: var(--gray-600);
}

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.activity-meta .badge {
    font-size: 11px;
    padding: 4px 10px;
}

/* Scroll Bar */
.recent-actions-list::-webkit-scrollbar {
    width: 6px;
}

.recent-actions-list::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.recent-actions-list::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 10px;
}

.recent-actions-list::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-two-column {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .stats-grid-modern {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-two-column {
        padding: 0 10px;
        gap: 20px;
    }

    .stats-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .recent-actions-list {
        max-height: 400px;
    }

    .activity-detail-item {
        flex-direction: column;
        padding: 16px;
    }

    .activity-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .stats-grid-modern {
        grid-template-columns: 1fr;
    }

    .dashboard-two-column {
        gap: 15px;
    }

    .activity-detail-item {
        padding: 14px;
    }

    .activity-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .activity-icon-wrapper i {
        font-size: 18px;
    }
}


/* ============================================ */
/* SİDEBAR SABİT VE SCROLL DÜZELTMESİ */
/* ============================================ */

/* Sidebar - Sabit ve Scroll */
.sidebar {
    position: fixed;
    top: 80px;
    left: 0;
    width: 280px;
    height: calc(100vh - 80px);
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 50;
}

/* Sidebar Scroll Bar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Sidebar Menü */
.sidebar-menu {
    padding: 20px 0;
}

/* Main Content - Sidebar için padding */
.main-content {
    margin-left: 280px;
    min-height: calc(100vh - 80px);
}

/* Menu Item */
.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
    position: relative;
    font-size: 14px;
}

.menu-item:hover {
    background: var(--gray-50);
    color: var(--gray-700);
}

.menu-item.active {
    background: rgba(79, 70, 229, 0.05);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.menu-item i {
    width: 20px;
    font-size: 16px;
    margin-right: 12px;
}

.menu-item .arrow {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.2s ease;
}

.menu-item.expanded .arrow {
    transform: rotate(90deg);
}

/* Submenu */
.submenu {
    background: var(--gray-50);
    display: none;
}

.submenu.show {
    display: block;
}

.submenu-item {
    display: flex;
    align-items: center;
    padding: 10px 24px 10px 56px;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.submenu-item:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.submenu-item.active {
    color: var(--primary);
    font-weight: 500;
}

/* Menu Section */
.menu-section {
    margin-bottom: 20px;
}

.menu-section-title {
    padding: 0 24px 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobil için Sidebar */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -280px;
        top: 56px;
        width: 280px;
        height: calc(100vh - 56px);
        transition: left 0.3s ease;
        z-index: 999;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }

    .sidebar.mobile-active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .sidebar-overlay.active {
        display: block;
    }
}

@media (max-width: 480px) {
    .sidebar {
        top: 52px;
        height: calc(100vh - 52px);
    }

    .main-content {
        padding: 10px;
    }
}

/* Navbar Fixed */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #172d4c;
    border-bottom: 1px solid var(--gray-200);
    padding: 0 24px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Page Content Container Düzeltmesi */
#pageContent {
    max-width: 2000px;
    margin: 0 auto;
    padding: 0 40px;
}

/* App Layout Düzeltmesi */
.app-layout {
    display: flex;
    min-height: calc(100vh - 80px);
    margin-top: 80px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Sidebar Animasyonu */
.sidebar {
    animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobil Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
    }

    .navbar {
        height: 56px;
    }

    .app-layout {
        margin-top: 56px;
    }
}

@media (max-width: 480px) {
    .navbar {
        height: 52px;
    }

    .app-layout {
        margin-top: 52px;
    }
}

/* Sidebar Açıkken Body Scroll Engelleme (Mobil) */
body.sidebar-open {
    overflow: hidden;
}

@media (min-width: 769px) {
    body.sidebar-open {
        overflow: auto;
    }
}

/* Sevkiyat Tablosu Responsive Fix */
#sevkiyatEdilenTable {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#sevkiyatEdilenTable table {
    width: 100%;
    min-width: 1000px;
    table-layout: auto;
}

#sevkiyatEdilenTable th,
#sevkiyatEdilenTable td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* Mobil için */
@media screen and (max-width: 768px) {
    #sevkiyatEdilenTable {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    #sevkiyatEdilenTable table {
        min-width: 900px;
        font-size: 12px;
    }
    
    #sevkiyatEdilenTable th,
    #sevkiyatEdilenTable td {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    #sevkiyatEdilenTable .action-btn {
        padding: 6px 8px;
        font-size: 11px;
    }
}

/* Yatay kaydırma bar'ı stilize et */
#sevkiyatEdilenTable::-webkit-scrollbar {
    height: 8px;
}

#sevkiyatEdilenTable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#sevkiyatEdilenTable::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

#sevkiyatEdilenTable::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Üretim Listesi Responsive */
#productionListTable {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#productionListTable table {
    width: 100%;
    min-width: 1200px;
}

@media screen and (max-width: 768px) {
    #productionListTable table {
        font-size: 12px;
    }
    
    #productionListTable th,
    #productionListTable td {
        padding: 8px 6px;
        font-size: 11px;
    }
}