:root {
    --primary: #1e3a8a;
    --primary-hover: #172554;
    --secondary: #0f172a;
    --accent: #2563eb;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
}

/* Navbar */
.navbar {
    background-color: var(--secondary);
    color: white;
    padding: 0.85rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent);
}

.navbar .brand {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar .brand span {
    font-size: 0.8rem;
    background: var(--accent);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: normal;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.9rem;
}

/* Layout */
.container {
    max-width: 1300px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

/* Cards & KPI */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.tab-btn {
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Buttons */
.btn {
    padding: 0.55rem 1.1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}
.btn-primary:hover {
    background: #1d4ed8;
}

.btn-success {
    background: var(--success);
    color: white;
}
.btn-success:hover {
    background: #15803d;
}

.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-danger:hover {
    background: #b91c1c;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}
.btn-outline:hover {
    background: #f1f5f9;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
}

th {
    background-color: #f1f5f9;
    color: #475569;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

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

/* Badges */
.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-amber {
    background: #fef3c7;
    color: #b45309;
}

.badge-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-green {
    background: #dcfce7;
    color: #15803d;
}

.badge-purple {
    background: #f3e8ff;
    color: #7e22ce;
}

.badge-gray {
    background: #f1f5f9;
    color: #475569;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: white;
    width: 90%;
    max-width: 520px;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.form-control {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

/* Excel Tipi Sütun Filtreleme */
.filter-row th {
    background-color: #f8fafc;
    padding: 0.4rem 0.6rem;
    border-bottom: 2px solid var(--border);
}

.col-filter {
    width: 100%;
    padding: 0.35rem 0.5rem;
    font-size: 0.78rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    color: #1e293b;
    box-sizing: border-box;
}

.col-filter:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.btn-clear-filter {
    background: #e2e8f0;
    color: #475569;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-clear-filter:hover {
    background: #cbd5e1;
    color: #0f172a;
}

.filter-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    font-size: 0.82rem;
    color: #475569;
}

/* Parti No Rozeti */
.badge-parti {
    background: #ede9fe;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
    font-family: monospace;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

/* Takım & Modül Kırılım Çekmecesi (Accordion Drawer) */
.btn-toggle-modules {
    background: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.3rem;
    transition: all 0.15s;
}

.btn-toggle-modules:hover {
    background: #0284c7;
    color: white;
}

.drawer-row td {
    background-color: #f8fafc;
    padding: 0.75rem 1.5rem 1.25rem 1.5rem !important;
    border-top: none;
    border-bottom: 2px solid #e2e8f0;
}

.module-box {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.85rem 1.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.module-header {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-kumas {
    background: #e0e7ff;
    color: #3730a3;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.badge-ayak {
    background: #fef3c7;
    color: #92400e;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.badge-detay {
    background: #f1f5f9;
    color: #475569;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* ==================== JOKER BUTİK ÜRETİM SİPARİŞ FORMU STİLLERİ ==================== */
.order-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.4rem;
}

.quick-apply-bar {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
}

.quick-apply-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
    align-items: end;
}

.module-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #0284c7;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.module-card:hover {
    border-color: #94a3b8;
    border-left-color: #0369a1;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07);
}

.module-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}

.module-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.module-card-row-full {
    margin-top: 0.65rem;
}

.btn-remove-module {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.btn-remove-module:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.btn-add-module {
    background: #f1f5f9;
    border: 1px dashed #94a3b8;
    color: #334155;
    padding: 0.65rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.15s ease;
}

.btn-add-module:hover {
    background: #e2e8f0;
    border-color: #64748b;
    color: #0f172a;
}

.btn-copy-all {
    background: #0284c7;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    height: 38px;
}

.btn-copy-all:hover {
    background: #0369a1;
}

.badge-restriction {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.12rem 0.45rem;
    border-radius: 9999px;
    background: #e0f2fe;
    color: #0369a1;
    margin-left: 0.35rem;
    vertical-align: middle;
}

.badge-restriction-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-kumas-yok {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.mgmt-stat-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.mgmt-stat-val {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3a8a;
}

.mgmt-stat-lbl {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 0.25rem;
}


