:root {
    /* Aurora teması renk paleti */
    --primary-color: #243a5a;
    --primary-dark: #243a5a;
    --primary-light: #243a5a;
    --secondary-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --cancelled-color: #8b1538;
    
    --dark-bg: #1e293b;
    --dark-bg-secondary: #0f172a;
    --dark-card: #334155;
    --dark-border: #475569;
    
    --light-bg: #f8fafc;
    --light-card: #ffffff;
    --light-border: #e2e8f0;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    
    --sidebar-width: 228px;
    --sidebar-width-collapsed: 80px;
    --header-height: 70px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Ayarlar Sayfası - Tab Styles */
.settings-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.tab-btn {
    padding: 16px 32px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: var(--light-bg);
}

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

.tab-btn i {
    font-size: 18px;
}

.tab-contents {
    min-height: 400px;
}

.tab-content {
    display: none;
}

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

/* Mini Stat Cards */
.mini-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.mini-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.mini-stat-info h4 {
    margin: 0 0 4px 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.mini-stat-info p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Role Cards */
.role-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    overflow: hidden;
}

.role-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.role-card-header {
    padding: 20px;
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.role-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #243a5a 0%, #1a2d47 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.role-card-header h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
}

.role-card-header p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.role-card-body {
    padding: 20px;
}

.role-card-body p {
    margin: 0 0 16px 0;
    color: var(--text-secondary);
    line-height: 1.6;
    min-height: 48px;
}

.role-status {
    display: flex;
    gap: 8px;
}

.role-card-footer {
    padding: 16px 20px;
    background: var(--light-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

/* Role Badge Button */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.role-badge:hover {
    background: var(--primary-color);
    color: white;
}

/* Role Selection List */
.role-selection-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.role-selection-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.role-selection-item:hover {
    border-color: var(--primary-color);
    background: var(--light-bg);
}

.role-selection-item.selected {
    border-color: var(--primary-color);
    background: rgba(36, 58, 90, 0.1);
}

.role-selection-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #243a5a 0%, #1a2d47 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.role-selection-info {
    flex: 1;
}

.role-selection-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.role-selection-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.role-selection-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s ease;
}

.role-selection-item.selected .role-selection-check {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-secondary);
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
    color: var(--text-primary);
}

.empty-state p {
    margin: 0;
    font-size: 16px;
    color: var(--text-secondary);
}

/* Button Outline */
.btn-outline-secondary {
    background: white;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-outline-secondary:hover {
    background: var(--light-bg);
    border-color: var(--text-secondary);
}

/* Notification Flows */
.notification-module {
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: white;
    overflow: hidden;
}

.notification-module:last-child {
    margin-bottom: 0;
}

.notification-module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: none;
    border-bottom: 1px solid var(--border-color);
    background: #f7f8fa;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.notification-module-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-module-header i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #243a5a 0%, #1a2d47 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.notification-module-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.module-chevron {
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    color: var(--text-secondary) !important;
    font-size: 12px !important;
    transition: transform 0.2s ease;
}

.notification-module .notification-module-content {
    display: none;
    padding: 14px;
}

.notification-module.open .notification-module-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-module.open .module-chevron {
    transform: rotate(180deg);
}

.notification-flows {
    flex-direction: column;
    gap: 12px;
}

.notification-flow-item {
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    transition: all 0.2s ease;
}

.notification-flow-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.notification-flow-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.notification-flow-item.disabled:hover {
    border-color: var(--border-color);
    box-shadow: none;
}

.notification-flow-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    padding: 0;
}

.notification-flow-info {
    flex: 1;
}

.notification-flow-info strong {
    display: block;
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.notification-flow-info p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.notification-flow-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.flow-chevron {
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    color: var(--text-secondary) !important;
    font-size: 11px !important;
    transition: transform 0.2s ease;
}

.notification-flow-details {
    display: none;
}

.notification-flow-item.open .notification-flow-details {
    display: block;
}

.notification-flow-item.open .flow-chevron {
    transform: rotate(180deg);
}

.notification-checkbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    min-width: 90px;
}

.notification-checkbox:hover:not(.disabled) {
    border-color: var(--primary-color);
    background: rgba(36, 58, 90, 0.05);
}

.notification-checkbox.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.notification-checkbox input[type="checkbox"] {
    display: none;
}

.notification-checkbox .checkbox-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.notification-checkbox input[type="checkbox"]:checked ~ .checkbox-icon {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.notification-checkbox .checkbox-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.notification-checkbox input[type="checkbox"]:checked ~ .checkbox-label {
    color: var(--primary-color);
}

.notification-recipient-config {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-color);
}

.notification-recipient-config.disabled {
    opacity: 0.6;
}

.recipient-config-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.recipient-config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.recipient-config-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.recipient-config-field small {
    display: block;
    font-size: 11px;
    margin-top: 5px;
    color: var(--text-secondary);
}

.recipient-select-hidden {
    display: none;
}

.recipient-combo {
    position: relative;
}

.recipient-combo-trigger {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #f3f5f7;
    color: var(--text-primary);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    cursor: pointer;
}

.recipient-combo-trigger i {
    font-size: 11px;
    color: var(--text-secondary);
}

.recipient-combo-trigger:disabled {
    background: var(--light-bg);
    cursor: not-allowed;
}

.recipient-combo-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: left;
}

.recipient-combo-panel {
    display: none;
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #f8f9fb;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    padding: 8px;
}

.recipient-combo.open .recipient-combo-panel {
    display: block;
}

.recipient-combo-search {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 7px 9px;
    font-size: 12px;
    margin-bottom: 8px;
}

.recipient-combo-options {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}

.recipient-combo-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 4px;
    font-size: 12px;
    color: var(--text-primary);
    cursor: pointer;
}

.recipient-combo-option:hover {
    background: var(--light-bg);
    border-radius: 6px;
}

.recipient-combo-option input[type="checkbox"] {
    margin-top: 2px;
}

.recipient-selected {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.recipient-chip {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    line-height: 1.3;
}

.recipient-selected-empty {
    font-size: 11px;
    color: var(--text-secondary);
}

.recipient-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.recipient-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
}

.recipient-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.recipient-toggle input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

/* Arayüz Ayarları Form Styles */
.settings-form-inline {
    max-width: 900px;
}

.form-row-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-row-inline .form-group-inline.full-width {
    grid-column: 1 / -1;
}

.form-group-inline label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.form-group-inline label i {
    color: var(--primary-color);
    font-size: 16px;
}

.logo-upload-container-inline {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.logo-preview-inline {
    width: 150px;
    height: 150px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
}

.logo-preview-inline img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-placeholder-inline {
    text-align: center;
    color: var(--text-secondary);
}

.logo-placeholder-inline i {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.logo-placeholder-inline p {
    margin: 0;
    font-size: 13px;
}

.logo-upload-actions-inline {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-actions-inline {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

/* Login Page */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #f8fafc 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle 600px at 20% 30%, rgba(36, 58, 90, 0.08) 0%, transparent 50%),
        radial-gradient(circle 400px at 80% 70%, rgba(236, 72, 153, 0.06) 0%, transparent 50%),
        radial-gradient(circle 500px at 50% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
    pointer-events: none;
    animation: backgroundGlow 10s ease-in-out infinite;
}

@keyframes backgroundGlow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.login-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(90deg, rgba(36, 58, 90, 0.02) 0px, transparent 1px, transparent 60px, rgba(36, 58, 90, 0.02) 61px),
        repeating-linear-gradient(0deg, rgba(36, 58, 90, 0.02) 0px, transparent 1px, transparent 60px, rgba(36, 58, 90, 0.02) 61px);
    pointer-events: none;
    opacity: 0.5;
}

.login-decorative-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    animation: fadeIn 0.8s ease-out;
    position: relative;
    z-index: 1;
}

.login-bracket {
    font-size: 280px;
    font-weight: 300;
    color: #0F172A;
    line-height: 1;
    user-select: none;
    font-family: 'Courier New', monospace;
    animation: bracketFloat 3s ease-in-out infinite;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    transform: scaleY(1.5);
}

.login-bracket-left {
    animation: bracketFloatLeft 4s ease-in-out infinite;
}

.login-bracket-right {
    animation: bracketFloatRight 4s ease-in-out infinite;
}

@keyframes bracketFloatLeft {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scaleY(1.5);
        opacity: 0.42;
    }
    50% {
        transform: translateY(-10px) translateX(-5px) scaleY(1.5);
        opacity: 0.68;
    }
}

@keyframes bracketFloatRight {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scaleY(1.5);
        opacity: 0.42;
    }
    50% {
        transform: translateY(-10px) translateX(5px) scaleY(1.5);
        opacity: 0.68;
    }
}

.login-container {
    background: white;
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(226, 232, 240, 0.8);
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.6s ease-out;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(36, 58, 90, 0.4),
        rgba(26, 45, 71, 0.3),
        rgba(45, 74, 115, 0.4),
        rgba(36, 58, 90, 0.4));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: borderRotate 4s linear infinite;
    z-index: -1;
}

@keyframes borderRotate {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

.login-container::after {
    content: '';
    position: absolute;
    inset: -100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(36, 58, 90, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -2;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: scale(1);
        opacity: 0.6;
    }
}

.login-container:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 60px rgba(36, 58, 90, 0.15),
        0 8px 20px rgba(36, 58, 90, 0.1),
        0 0 0 1px rgba(36, 58, 90, 0.3);
}

.login-container:hover::before {
    opacity: 1;
}

.login-container:hover::after {
    opacity: 1;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive adjustments for login brackets */
@media (max-width: 1024px) {
    .login-bracket {
        font-size: 200px;
        gap: 20px;
    }
    
    .login-decorative-container {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .login-bracket {
        font-size: 150px;
    }
    
    .login-decorative-container {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .login-bracket {
        font-size: 100px;
        transform: scaleY(1.3);
    }
    
    .login-decorative-container {
        gap: 10px;
    }
    
    .login-container {
        padding: 20px 50px;
    }
}

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

.login-logo {
    width: 180px;
    height: 140px;
    background: linear-gradient(135deg, #0F172A 0%, #0F172A 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 
        0 8px 32px rgba(15, 23, 42, 0.15),
        0 2px 8px rgba(15, 23, 42, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: logoShine 3s ease-in-out infinite;
}

@keyframes logoShine {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-30%, -30%); }
}

.login-logo:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 48px rgba(15, 23, 42, 0.2),
        0 4px 12px rgba(15, 23, 42, 0.15);
}

.login-logo i {
    font-size: 40px;
    color: white;
}

.login-header h1 {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 400;
}

/* Mobile optimizations for login */
@media (max-width: 768px) {
    .login-header h1 {
        font-size: 20px;
    }
    
    .login-header p {
        font-size: 14px;
    }
    
    .login-logo {
        width: 140px;
        height: 110px;
        margin-bottom: 20px;
    }
    
    .login-header {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .login-header h1 {
        font-size: 16px;
        margin-bottom: 8px;
        letter-spacing: -0.3px;
    }
    
    .login-header p {
        font-size: 13px;
    }
    
    .login-logo {
        width: 120px;
        height: 95px;
        margin-bottom: 16px;
        padding: 15px;
        border-radius: 16px;
    }
    
    .login-header {
        margin-bottom: 24px;
    }
    
    .login-container {
        padding: 16px 30px !important;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-control {
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 8px;
    }
}

@media (max-width: 400px) {
    .login-header h1 {
        font-size: 15px;
    }
    
    .login-logo {
        width: 100px;
        height: 80px;
        margin-bottom: 14px;
    }
    
    .login-container {
        padding: 20px 20px !important;
    }
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    font-family: inherit;
}

.form-control:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 
        0 0 0 4px rgba(36, 58, 90, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}

/* Password Input with Toggle */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper .password-input {
    padding-right: 55px;
}

.password-toggle-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.password-toggle-btn:hover {
    background: rgba(36, 58, 90, 0.1);
    color: var(--primary-color);
}

.password-toggle-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.password-toggle-btn i {
    pointer-events: none;
}

/* Password Requirements */
.password-requirements {
    margin-top: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 13px;
    transition: all 0.3s ease;
}

.requirement i {
    font-size: 8px;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.requirement.met {
    color: var(--success-color);
}

.requirement.met i {
    color: var(--success-color);
    animation: checkPop 0.3s ease;
}

@keyframes checkPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* Password Match Message */
.password-match-message {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.password-match-message.match {
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.password-match-message.no-match {
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Change Password Container Animation */
.change-password-container {
    animation: slideUpScale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUpScale {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 
        0 8px 24px rgba(36, 58, 90, 0.25),
        0 2px 6px rgba(36, 58, 90, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 32px rgba(36, 58, 90, 0.35),
        0 4px 8px rgba(36, 58, 90, 0.2);
}

.btn-primary:active {
    transform: translateY(0px);
    box-shadow: 
        0 4px 16px rgba(36, 58, 90, 0.3),
        0 2px 4px rgba(36, 58, 90, 0.2);
}

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    border: 2px solid #fca5a5;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

.alert-danger i {
    font-size: 16px;
}

.login-demo {
    margin-top: 30px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 12px;
}

.login-demo h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-users {
    display: grid;
    gap: 8px;
    font-size: 13px;
}

.demo-user {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: white;
    border-radius: 8px;
}

.demo-user strong {
    color: var(--primary-color);
}

/* Main Layout */
.dashboard-wrapper {
    position: relative;
    min-height: 100vh;
}

/* Sidebar - Responsive Design */

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--dark-border);
    flex-shrink: 0;
}

.sidebar-toggle-btn {
    width: 44px;
    height: 44px;
    background: var(--light-bg);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-right: 12px;
}

.sidebar-toggle-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(36, 58, 90, 0.3);
}

.sidebar-toggle-btn i {
    font-size: 18px;
}

/* Hide sidebar toggle on mobile, show mobile menu toggle instead */
@media (max-width: 768px) {
    .sidebar-toggle-btn {
        display: none;
    }
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
}

.sidebar-brand-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
}

.brand-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo i {
    font-size: 24px;
}

.brand-logo-large {
    width: 150px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.brand-logo-large:hover {
    box-shadow: 0 0 15px rgba(36, 58, 90, 0.4), 
                0 0 25px rgba(36, 58, 90, 0.2);
    transform: scale(1.02);
}

.brand-logo-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.brand-text h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 2px;
}

.brand-text p {
    font-size: 12px;
    color: var(--text-light);
}

.brand-text-centered {
    text-align: center;
}

.brand-text-centered p {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.sidebar-nav {
    padding: 20px 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Scroll Indicator */
.sidebar-scroll-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.95));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.sidebar:hover .sidebar-scroll-indicator.show {
    opacity: 1;
}

.sidebar-scroll-indicator i {
    color: white;
    font-size: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

.sidebar.collapsed .sidebar-scroll-indicator {
    display: none;
}

.nav-section {
    margin-bottom: 15px;
}

.nav-section-title {
    padding: 0 20px 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 600;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin: 4px 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.nav-link:hover {
    background: var(--dark-card);
    color: white;
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(36, 58, 90, 0.3);
}

.nav-link i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.nav-badge {
    margin-left: auto;
    background: var(--danger-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

/* User Info Sidebar */
.sidebar-user {
    padding: 10px 24px;
    border-top: 1px solid var(--dark-border);
    background: var(--dark-bg-secondary);
    flex-shrink: 0;
    margin-top: auto;
}

/* Customer Info Section */
.customer-info {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--dark-border);
    text-align: center;
}

.customer-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 5px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.customer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.customer-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.customer-email,
.customer-phone,
.customer-website {
    font-size: 12px;
    color: var(--text-light);
    margin: 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.customer-email a,
.customer-phone a,
.customer-website a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.customer-email a:hover,
.customer-phone a:hover,
.customer-website a:hover {
    color: var(--primary-light);
}

.customer-email a,
.customer-website a {
    font-size: 11px;
    word-break: break-all;
}

.customer-placeholder {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.customer-placeholder i {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.customer-placeholder p {
    font-size: 12px;
    margin: 0;
}

.customer-placeholder-link {
    text-decoration: none;
    display: block;
}

.customer-placeholder-link:hover .customer-placeholder {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.customer-placeholder-link:hover .customer-placeholder i {
    opacity: 0.8;
    color: var(--primary-light);
}

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

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.user-details h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.user-role {
    font-size: 11px;
    color: var(--text-light);
    padding: 2px 8px;
    background: var(--dark-card);
    border-radius: 6px;
    display: inline-block;
}

.btn-logout {
    width: 100%;
    padding: 5px;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
}

.btn-logout:hover {
    background: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: var(--transition);
}

/* Header */
.main-header {
    height: var(--header-height);
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-primary);
}

.header-search {
    position: relative;
}

.search-input {
    width: 350px;
    padding: 12px 18px 12px 45px;
    border: 2px solid var(--light-border);
    border-radius: 12px;
    font-size: 14px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(36, 58, 90, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon {
    width: 44px;
    height: 44px;
    background: var(--light-bg);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.header-icon:hover {
    background: var(--primary-light);
    color: white;
}

.header-icon i {
    font-size: 18px;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}




.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.breadcrumb {
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

/* Responsive: Orta ekranlarda 6 sütun */
@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Responsive: Küçük ekranlarda 3 sütun */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid var(--light-border);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(36, 58, 90, 0.3);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.stat-icon.primary {
    background: linear-gradient(135deg, rgba(36, 58, 90, 0.2) 0%, rgba(36, 58, 90, 0.3) 100%);
    color: var(--primary-color);
    border: 2px solid rgba(36, 58, 90, 0.3);
}

.stat-icon.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.3) 100%);
    color: var(--success-color);
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.stat-icon.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.3) 100%);
    color: var(--warning-color);
    border: 2px solid rgba(245, 158, 11, 0.3);
}

.stat-icon.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.3) 100%);
    color: var(--danger-color);
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.stat-icon.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.3) 100%);
    color: var(--info-color);
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.stat-icon.cancelled {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.2) 0%, rgba(107, 114, 128, 0.3) 100%);
    color: #6b7280;
    border: 2px solid rgba(107, 114, 128, 0.3);
}

/* Modern Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
    padding: 20px;
    box-sizing: border-box;
}

.modal-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
    margin: auto;
}

.modal-container.status-modal {
    max-width: 400px;
}

.modal-container.filter-modal {
    max-width: 600px;
    max-height: 80vh;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--light-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--light-bg);
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.modal-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--light-border);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--danger-color);
    color: white;
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--light-border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: var(--light-bg);
}

/* Search Container */
.search-container {
    margin-bottom: 20px;
}

.search-input-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 14px;
}

.search-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 2px solid var(--light-border);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(36, 58, 90, 0.1);
}

/* User List */
.user-list-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--light-border);
    border-radius: 10px;
}

.user-list {
    padding: 8px;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.user-item:hover {
    background: var(--light-bg);
}

.user-item.selected {
    background: rgba(36, 58, 90, 0.1);
    border: 1px solid var(--primary-color);
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.user-avatar.unassigned {
    background: var(--text-secondary);
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.user-position {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 2px;
}

.user-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--light-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    opacity: 0;
    transition: all 0.2s;
}

.user-item.selected .user-check {
    opacity: 1;
    background: var(--success-color);
    border-color: var(--success-color);
}

/* Status Options */
.status-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--light-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.status-option:hover {
    border-color: var(--primary-color);
    background: rgba(36, 58, 90, 0.05);
}

.status-option.selected {
    border-color: var(--primary-color);
    background: rgba(36, 58, 90, 0.1);
}

.status-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.status-icon.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.status-icon.in-progress {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.status-icon.completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-icon.cancelled {
    background: rgba(139, 21, 56, 0.1);
    color: var(--cancelled-color);
}

.status-info {
    flex: 1;
}

.status-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.status-desc {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 2px;
}

.status-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--light-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    opacity: 0;
    transition: all 0.2s;
}

.status-option.selected .status-check {
    opacity: 1;
    background: var(--success-color);
    border-color: var(--success-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Inline Edit Styles */
.inline-edit-container {
    position: relative;
}

.inline-edit-container:hover .edit-icon {
    opacity: 1;
}

.edit-icon {
    font-size: 10px;
    color: var(--text-secondary);
    opacity: 0.5;
    transition: opacity 0.2s;
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.user-info-small {
    flex: 1;
    min-width: 0;
}

.user-name-small {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.user-position-small {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.2;
    margin-top: 1px;
}

.unassigned-indicator {
    display: flex;
    align-items: center;
    flex: 1;
}

.status-edit:hover .edit-icon {
    opacity: 1;
}

.assign-edit:hover .edit-icon {
    opacity: 1;
}

/* Sortable Table Styles */
.sortable {
    transition: background-color 0.2s;
}

.sortable:hover {
    background-color: var(--light-bg);
}

.sort-icon {
    margin-left: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.6;
    transition: all 0.2s;
}

.sort-icon.active {
    color: var(--primary-color);
    opacity: 1;
}

.sortable:hover .sort-icon {
    opacity: 0.8;
}

/* Compact Filters */
.compact-select {
    min-width: 120px;
    height: 38px;
    font-size: 13px;
    padding: 8px 12px;
    border: 1px solid var(--light-border);
    border-radius: 6px;
}

.compact-filters {
    border: 1px solid var(--light-border);
}

/* Mobile First Approach - Base Mobile Styles */
/* Reset and base mobile styles */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

input, textarea, select, button {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Mobile Navigation */
.dashboard-wrapper {
    position: relative;
    min-height: 100vh;
}

/* Desktop Sidebar - Always visible */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--dark-bg-secondary);
    color: white;
    transition: width 0.3s ease, all 0.3s ease;
    z-index: 1050;
    overflow-x: hidden;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

/* Collapsed Sidebar */
.sidebar.collapsed {
    width: var(--sidebar-width-collapsed) !important;
}

.sidebar.collapsed .sidebar-header {
    padding: 16px 12px;
}

.sidebar.collapsed .brand-logo-large {
    width: 50px;
    height: 40px;
}

.sidebar.collapsed .brand-text-centered {
    display: none;
}


.sidebar.collapsed .nav-section-title {
    opacity: 0;
    font-size: 0;
    padding: 0;
    height: 0;
    overflow: hidden;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 12px;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar.collapsed .nav-link i {
    margin: 0;
    font-size: 20px;
}

.sidebar.collapsed .user-details {
    display: none;
}

.sidebar.collapsed .user-info {
    justify-content: center;
    width: 100%;
}

.sidebar.collapsed .user-avatar {
    margin: 0 auto;
}

.sidebar.collapsed .btn-logout {
    padding: 10px;
    justify-content: center;
    width: 100%;
}

.sidebar.collapsed .btn-logout i {
    margin: 0;
}

.sidebar.collapsed .logout-text {
    display: none;
}

.sidebar.collapsed .sidebar-user {
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sidebar.collapsed .customer-info {
    display: none;
}

/* Mobile Sidebar - Hidden by default, shown when active */
@media (max-width: 768px) {
    .dashboard-wrapper .sidebar {
        left: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .dashboard-wrapper .sidebar.active {
        transform: translateX(0) !important;
    }
}

/* Desktop - Hide mobile overlay */
.mobile-overlay {
    display: none;
}

/* Mobile - Show mobile overlay */
@media (max-width: 768px) {
    .mobile-overlay {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Desktop Main Content - Leave space for sidebar */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding-top: var(--header-height);
    transition: margin-left 0.3s ease;
}

/* Main content when sidebar is collapsed */
.main-content.sidebar-collapsed {
    margin-left: var(--sidebar-width-collapsed) !important;
}

/* Mobile Main Content - Full width with header space */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        width: 100%;
        padding-top: var(--header-height);
    }
}

/* Content Area */
.content-area {
    padding: 20px 16px 28px;
}

/* Desktop Header - Starts after sidebar */
.main-header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: 70px;
    background: white;
    border-bottom: 1px solid var(--light-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 998;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
}

/* Header when sidebar is collapsed */
.main-header.sidebar-collapsed {
    left: var(--sidebar-width-collapsed) !important;
}

/* Mobile Header - Full width */
@media (max-width: 768px) {
    .main-header {
        left: 0;
    }
}

/* Desktop - Show sidebar toggle, hide mobile menu toggle */
.menu-toggle {
    display: none;
}

/* Mobile - Show mobile menu toggle, hide sidebar toggle */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: none;
        background: var(--light-bg);
        color: var(--text-primary);
        font-size: 18px;
        cursor: pointer;
        border-radius: 8px;
        transition: background-color 0.2s;
    }

    .menu-toggle:hover {
        background: rgba(36, 58, 90, 0.1);
    }
}

/* Desktop - Show header search */
.header-search {
    display: flex;
    align-items: center;
    position: relative;
    margin-left: 20px;
}

.header-search .search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.header-search .search-input {
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--light-border);
    border-radius: 8px;
    background: var(--light-bg);
    color: var(--text-primary);
    font-size: 14px;
    width: 300px;
    transition: all 0.2s;
}

.header-search .search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(36, 58, 90, 0.1);
}

/* Mobile - Hide header search */
@media (max-width: 768px) {
    .header-search {
        display: none;
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon {
    position: relative;
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.header-icon:hover {
    background: var(--light-bg);
    color: var(--text-primary);
}

.header-customer-logo {
    width: 150px;
    height: 50px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.header-customer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.notification-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

@media (max-width: 768px) {
    .compact-filters > div {
        flex-direction: column;
        align-items: stretch;
    }
    
    .compact-filters > div > div:first-child {
        margin-bottom: 12px;
    }
    
    .compact-filters > div > div:last-child {
        justify-content: stretch;
    }
    
    .compact-select {
        min-width: auto;
        flex: 1;
    }
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
}

.stat-change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stat-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.stat-card-body h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card-body p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cards */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--light-border);
    margin-bottom: 24px;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--light-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 24px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead th {
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--light-border);
}

.table tbody td {
    padding: 16px;
    border-bottom: 1px solid var(--light-border);
    font-size: 14px;
}

.table tbody tr:hover {
    background: var(--light-bg);
}

/* Badges */
.badge {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #059669;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.4);
}

.badge-success:hover {
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.5);
}

.badge-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: #d97706;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
}

.badge-warning:hover {
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.5);
}

.badge-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-color: #dc2626;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.4);
}

.badge-danger:hover {
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.5);
}

.badge-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #2563eb;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.4);
}

.badge-info:hover {
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.5);
}

.badge-primary {
    background: linear-gradient(135deg, #243a5a 0%, #1a2d47 100%);
    color: white;
    border-color: #1a2d47;
    box-shadow: 0 3px 10px rgba(36, 58, 90, 0.4);
}

.badge-primary:hover {
    box-shadow: 0 5px 15px rgba(36, 58, 90, 0.5);
}

.badge-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border-color: #4b5563;
    box-shadow: 0 3px 10px rgba(107, 114, 128, 0.4);
}

.badge-secondary:hover {
    box-shadow: 0 5px 15px rgba(107, 114, 128, 0.5);
}

.badge i {
    font-size: 14px;
    margin-right: 2px;
}

.work-card-badge i {
    font-size: 13px;
}

/* Progress Bar */
.progress {
    height: 8px;
    background: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Buttons */
.btn-secondary {
    background: var(--light-bg);
}

.btn-secondary:hover {
    background: var(--light-border);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

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

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Mobile Menu */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Old responsive code removed - using new mobile-first approach */

@media (max-width: 768px) {
    .content-area {
        padding: 16px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .header-search {
        display: none;
    }
    
    .main-header {
        padding: 0 20px;
    }
    
    /* Table responsive */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 800px;
        font-size: 13px;
    }
    
    .table th,
    .table td {
        padding: 8px 6px;
        white-space: nowrap;
    }
    
    /* Modal responsive */
    .modal-container {
        width: 95%;
        max-width: 95vw;
        margin: 10px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 12px 16px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* User list in modal */
    .user-list-container {
        max-height: 250px;
    }
    
    .user-item {
        padding: 10px;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
    }
    
    /* Status options in modal */
    .status-option {
        padding: 12px;
    }
    
    .status-icon {
        width: 36px;
        height: 36px;
    }
    
    /* Inline edit improvements */
    .inline-edit-container {
        padding: 6px !important;
        min-height: 40px !important;
    }
    
    .user-avatar-small {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .user-name-small {
        font-size: 12px;
    }
    
    .user-position-small {
        font-size: 10px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .table-responsive {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 20px 50px;
    }
    
    .content-area {
        padding: 12px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 14px;
    }
    
    .stat-card h3 {
        font-size: 20px;
    }
    
    .compact-filters {
        padding: 8px;
    }
    
    .compact-filters > div {
        gap: 8px;
    }
    
    .compact-filters input {
        font-size: 14px;
    }
    
    .compact-select {
        font-size: 12px;
        padding: 6px 8px;
        height: 34px;
    }
    
    .table {
        font-size: 12px;
    }
    
    .table th,
    .table td {
        padding: 6px 4px;
    }
    
    .badge {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .btn-sm {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .modal-container {
        width: 98%;
        max-width: 98vw;
        margin: 5px;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-title h3 {
        font-size: 16px;
    }
    
    .modal-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .search-input {
        font-size: 14px;
        padding: 10px 10px 10px 36px;
    }
    
    .search-icon {
        font-size: 12px;
        left: 10px;
    }
    
    .user-item,
    .status-option {
        padding: 8px;
    }
    
    .user-avatar,
    .status-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .user-name,
    .status-name {
        font-size: 13px;
    }
    
    .user-position,
    .status-desc {
        font-size: 11px;
    }
    
    /* Detail page mobile */
    .detail-layout {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .page-header {
        margin-top: 55px;
        margin-bottom: 15px;
    }
    
    .page-header h2 {
        font-size: 20px;
    }
    
    .breadcrumb {
        font-size: 12px;
        margin-top: 8px;
    }
    
    /* Touch-friendly buttons */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .btn-sm {
        min-height: 36px;
        min-width: 36px;
    }
    
    /* Better touch targets for inline edit */
    .inline-edit-container {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
    }
}

/* Filter Modal Styles */
.filter-sections {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-section {
    border: 1px solid var(--light-border);
    border-radius: 8px;
    overflow: hidden;
}

.filter-header {
    padding: 16px;
    background: var(--light-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s;
    user-select: none;
}

.filter-header:hover {
    background: rgba(36, 58, 90, 0.05);
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.filter-section-icon {
    color: var(--primary-color);
    font-size: 16px;
}

.filter-chevron {
    color: var(--text-secondary);
    transition: transform 0.3s ease;
    font-size: 14px;
}

.filter-content {
    padding: 16px;
    background: white;
}

.filter-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 2px solid var(--light-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.filter-option:hover {
    border-color: var(--primary-color);
    background: rgba(36, 58, 90, 0.02);
}

.filter-option.selected {
    border-color: var(--primary-color);
    background: rgba(36, 58, 90, 0.08);
}

.filter-option-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    font-weight: 600;
}

.filter-option-icon.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.filter-option-icon.in-progress {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.filter-option-icon.completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.filter-option-icon.cancelled {
    background: rgba(139, 21, 56, 0.1);
    color: var(--cancelled-color);
}

.filter-option-icon.low {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-secondary);
}

.filter-option-icon.normal {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.filter-option-icon.high {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.filter-option-icon.urgent {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.filter-option-icon.unassigned {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-secondary);
}

.filter-option-icon.user {
    background: var(--primary-color);
    color: white;
    font-size: 12px;
}

.filter-option-icon.today {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.filter-option-icon.week {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.filter-option-icon.month {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.filter-option-icon.custom {
    background: rgba(139, 69, 19, 0.1);
    color: #8b4513;
}

.filter-option-icon:not(.user):not(.pending):not(.in-progress):not(.completed):not(.cancelled):not(.low):not(.normal):not(.high):not(.urgent):not(.unassigned):not(.today):not(.week):not(.month) {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-secondary);
}

.filter-option-text {
    flex: 1;
}

.filter-option-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.2;
}

.filter-option-desc {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.2;
    margin-top: 2px;
}

.filter-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--light-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    opacity: 0;
    transition: all 0.2s;
}

.filter-option.selected .filter-check {
    opacity: 1;
    background: var(--success-color);
    border-color: var(--success-color);
}

/* Filter Button Styles */
.filter-btn {
    position: relative;
}

.filter-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Custom Date Range Styles */
.custom-date-range {
    animation: slideDown 0.3s ease-out;
}

.custom-date-range label {
    color: var(--text-primary);
    font-weight: 600;
}

.custom-date-range input[type="datetime-local"] {
    border: 1px solid var(--light-border);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    width: 100%;
    transition: border-color 0.2s;
}

.custom-date-range input[type="datetime-local"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(36, 58, 90, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Filter Bar */
.search-filter-bar {
    border: 1px solid var(--light-border);
}

@media (max-width: 768px) {
    .filter-modal .modal-container {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .filter-sections {
        gap: 16px;
    }
    
    .filter-header {
        padding: 12px;
    }
    
    .filter-content {
        padding: 12px;
    }
    
    .filter-title {
        font-size: 13px;
    }
    
    .filter-section-icon {
        font-size: 14px;
    }
    
    .custom-date-range {
        padding: 12px;
    }
    
    .custom-date-range input[type="datetime-local"] {
        padding: 10px;
        font-size: 14px;
    }
    
    .filter-option {
        padding: 10px;
    }
    
    .filter-option-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .search-filter-bar > div {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-filter-bar > div > div:first-child {
        min-width: auto;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* Custom Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--dark-bg-secondary);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--dark-card);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--dark-border);
}

/* Mobile Card Layout for Work Items */
.mobile-work-cards {
    display: none;
}

@media (max-width: 768px) {
    .table-responsive {
        display: none;
    }
    
    .mobile-work-cards {
        display: block;
    }
    
    .work-card {
        background: white;
        border: 1px solid var(--light-border);
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        transition: all 0.2s;
    }
    
    .work-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }
    
    .work-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 12px;
    }
    
    .work-card-title {
        font-size: 16px;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0;
        line-height: 1.3;
        flex: 1;
        margin-right: 12px;
    }
    
    .work-card-id {
        background: var(--light-bg);
        color: var(--text-secondary);
        padding: 4px 8px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
    }
    
    .work-card-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .work-card-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        transition: all 0.3s ease;
        border: 2px solid transparent;
    }
    
    .work-card-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .work-card-info-item {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .work-card-info-label {
        font-size: 11px;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
    }
    
    .work-card-info-value {
        font-size: 13px;
        color: var(--text-primary);
        font-weight: 500;
    }
    
    .work-card-assignee {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px;
        background: var(--light-bg);
        border-radius: 8px;
        margin-bottom: 12px;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .work-card-assignee:hover {
        background: rgba(36, 58, 90, 0.1);
    }
    
    .work-card-avatar {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: var(--primary-color);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 600;
    }
    
    .work-card-assignee-info {
        flex: 1;
    }
    
    .work-card-assignee-name {
        font-size: 13px;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0;
    }
    
    .work-card-assignee-role {
        font-size: 11px;
        color: var(--text-secondary);
        margin: 0;
    }
    
    .work-card-actions {
        display: flex;
        gap: 8px;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
    
    .work-card-action {
        padding: 8px 12px;
        border: 1px solid var(--light-border);
        background: white;
        color: var(--text-secondary);
        border-radius: 6px;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        gap: 4px;
        text-decoration: none;
        min-height: 36px;
    }
    
    .work-card-action:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
        text-decoration: none;
    }
    
    .work-card-action.primary {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }
    
    .work-card-action.primary:hover {
        background: var(--primary-hover);
        color: white;
    }
}

/* Modal Styles for Ayarlar Page */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

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

.modal-container {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-bg);
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--danger-color);
    color: white;
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: var(--light-bg);
}

/* Responsive Styles for Ayarlar Page */
@media (max-width: 768px) {
    .settings-tabs {
        overflow-x: auto;
    }
    
    .tab-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .mini-stat-card {
        padding: 16px;
    }
    
    .modal-container {
        width: 95%;
    }
    
    .notification-flow-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .notification-flow-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .recipient-config-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row-inline {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .logo-upload-container-inline {
        flex-direction: column;
    }
    
    .logo-preview-inline {
        width: 100%;
        max-width: 150px;
        margin: 0 auto;
    }
}
