/* Modern CSS Framework - PDF Test Sayfası İyileştirme */

/* ==================== CSS Variables ==================== */
:root {
    /* Marka Renkleri */
    --primary-color: #19d6f7;
    --secondary-color: #ff7f32;
    --accent-color: #333;
    --text-color: #000;
    --background-color: #fff;
    
    /* Gri Tonları */
    --gray-50: #f8f9fa;
    --gray-100: #e9ecef;
    --gray-200: #dee2e6;
    --gray-300: #ced4da;
    --gray-400: #adb5bd;
    --gray-500: #6c757d;
    --gray-600: #495057;
    --gray-700: #343a40;
    --gray-800: #212529;
    --gray-900: #0d0f11;
    
    /* Durum Renkleri */
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
    
    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ==================== Utility Classes ==================== */

/* Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }
.gap-4 { gap: var(--spacing-lg); }
.gap-5 { gap: var(--spacing-xl); }

/* Grid Utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Spacing Utilities */
.m-0 { margin: 0; }
.m-1 { margin: var(--spacing-xs); }
.m-2 { margin: var(--spacing-sm); }
.m-3 { margin: var(--spacing-md); }
.m-4 { margin: var(--spacing-lg); }
.m-5 { margin: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

/* Border Radius Utilities */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadow Utilities */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-none { box-shadow: none; }

/* Text Utilities */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Color Utilities */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }
.text-info { color: var(--info-color); }
.text-muted { color: var(--gray-500); }

.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-success { background-color: var(--success-color); }
.bg-danger { background-color: var(--danger-color); }
.bg-warning { background-color: var(--warning-color); }
.bg-info { background-color: var(--info-color); }
.bg-light { background-color: var(--gray-50); }
.bg-white { background-color: #fff; }

/* ==================== Modern Components ==================== */

/* Modern Card */
.modern-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    transition: all var(--transition-base);
}

.modern-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.modern-card-header {
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    font-size: 1.125rem;
}

.modern-card-body {
    padding: var(--spacing-lg);
}

.modern-card-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--gray-200);
    background-color: var(--gray-50);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Modern Button */
.modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.modern-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.modern-btn:active {
    transform: translateY(0);
}

.modern-btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.modern-btn-primary:hover {
    background-color: #15b8d4;
    color: white;
}

.modern-btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.modern-btn-secondary:hover {
    background-color: #e66d28;
    color: white;
}

.modern-btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.modern-btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.modern-btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.875rem;
}

.modern-btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.125rem;
}

/* Modern Input */
.modern-input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 214, 247, 0.1);
}

.modern-input.is-invalid {
    border-color: var(--danger-color);
    background-color: rgba(220, 53, 69, 0.05);
}

.modern-input.is-invalid:focus {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.modern-input.is-valid {
    border-color: var(--success-color);
    background-color: rgba(40, 167, 69, 0.05);
}

.modern-input.is-valid:focus {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Invalid Feedback */
.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--danger-color);
}

.invalid-feedback.d-block {
    display: block;
}

.invalid-feedback::before {
    content: "⚠ ";
    font-weight: bold;
}

/* Valid Feedback */
.valid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--success-color);
}

.valid-feedback.d-block {
    display: block;
}

.valid-feedback::before {
    content: "✓ ";
    font-weight: bold;
}

/* Modern Badge */
.modern-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-badge-primary {
    background-color: rgba(25, 214, 247, 0.1);
    color: var(--primary-color);
}

.modern-badge-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.modern-badge-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

/* Modern Tooltip */
.modern-tooltip {
    position: relative;
    display: inline-block;
}

.modern-tooltip .tooltip-text {
    visibility: hidden;
    background-color: var(--gray-800);
    color: white;
    text-align: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    position: absolute;
    z-index: var(--z-tooltip);
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    white-space: nowrap;
    font-size: 0.875rem;
}

.modern-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Modern Toast */
.modern-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    z-index: var(--z-tooltip);
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.modern-toast:hover {
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.15), 0 15px 15px -5px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.modern-toast.toast-success {
    border-left-color: var(--success-color);
}

.modern-toast.toast-success i {
    color: var(--success-color);
}

.modern-toast.toast-error {
    border-left-color: var(--danger-color);
}

.modern-toast.toast-error i {
    color: var(--danger-color);
}

.modern-toast.toast-warning {
    border-left-color: var(--warning-color);
}

.modern-toast.toast-warning i {
    color: var(--warning-color);
}

.modern-toast.toast-info {
    border-left-color: var(--info-color);
}

.modern-toast.toast-info i {
    color: var(--info-color);
}

.modern-toast i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.modern-toast span {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.modern-toast .btn-close {
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.modern-toast .btn-close:hover {
    opacity: 1;
}

/* Toast Container for Multiple Toasts */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: var(--z-tooltip);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-width: 400px;
}

/* Toast Animations */
@keyframes slideInRight {
    from {
        transform: translateX(calc(100% + 20px));
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(calc(100% + 20px));
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* Toast Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    border-radius: 0 0 0 var(--radius-lg);
    animation: toastProgress 3s linear;
}

@keyframes toastProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Modern Accordion */
.modern-accordion {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.modern-accordion-item {
    border-bottom: 1px solid var(--gray-200);
}

.modern-accordion-item:last-child {
    border-bottom: none;
}

.modern-accordion-header {
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: var(--gray-50);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast);
}

.modern-accordion-header:hover {
    background-color: var(--gray-100);
}

.modern-accordion-body {
    padding: var(--spacing-lg);
    display: none;
}

.modern-accordion-body.show {
    display: block;
}

/* Modern Loading Spinner */
.modern-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.modern-spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.modern-spinner-lg {
    width: 60px;
    height: 60px;
    border-width: 6px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== Responsive Design ==================== */

@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .modern-toast {
        min-width: 250px;
        right: 10px;
        top: 10px;
    }
}

/* ==================== Accessibility ==================== */

/* Focus Indicators - Enhanced */
*:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(25, 214, 247, 0.2);
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(25, 214, 247, 0.2);
}

/* Focus Visible (only keyboard navigation) */
*:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(25, 214, 247, 0.2);
}

/* Skip to Content Link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 0 0 4px 0;
}

.skip-to-content:focus {
    top: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --secondary-color: #cc3300;
        --text-color: #000;
        --background-color: #fff;
    }
    
    .modern-card {
        border: 2px solid #000;
    }
    
    button,
    .modern-btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .modern-spinner {
        animation: none;
        border-top-color: transparent;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f0f0f0;
        --background-color: #1a1a1a;
        --gray-50: #2a2a2a;
        --gray-100: #333;
        --gray-200: #444;
    }
    
    body {
        background-color: var(--background-color);
        color: var(--text-color);
    }
    
    .modern-card {
        background-color: #2a2a2a;
        color: var(--text-color);
    }
    
    .modern-input {
        background-color: #333;
        color: var(--text-color);
        border-color: #555;
    }
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Screen Reader Only - Focusable */
.sr-only-focusable:active,
.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* ARIA Live Regions */
[aria-live="polite"],
[aria-live="assertive"] {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Keyboard Navigation Helpers */
.keyboard-nav *:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Touch Target Size (minimum 44x44px) */
button,
a,
input[type="checkbox"],
input[type="radio"],
.btn {
    min-height: 44px;
    min-width: 44px;
}

button.btn-sm,
.btn-sm {
    min-height: 36px;
    min-width: 36px;
}

/* Text Spacing for Readability */
.accessible-text {
    line-height: 1.5;
    letter-spacing: 0.12em;
    word-spacing: 0.16em;
}

/* Color Contrast Helpers */
.high-contrast {
    background: #000;
    color: #fff;
}

.high-contrast a {
    color: #ffff00;
    text-decoration: underline;
}

/* Focus Trap for Modals */
.modal-open {
    overflow: hidden;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal-backdrop);
}

/* Disabled State */
[disabled],
.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Loading State */
[aria-busy="true"] {
    cursor: wait;
}

/* Error State */
[aria-invalid="true"] {
    border-color: var(--danger-color);
    background-color: rgba(220, 53, 69, 0.1);
}

/* Required Field Indicator */
[required],
[aria-required="true"] {
    position: relative;
}

/* Visually Hidden but Accessible */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* ==================== İş Emri Detay Sayfası Stilleri ==================== */

/* Glassmorphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.glass-effect:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
    transform: translateY(-3px);
    transition: all 0.3s ease;
}

/* Gradient Backgrounds */
.gradient-bg-primary {
    background: linear-gradient(135deg, #17a2b8 0%, #fd7e14 100%);
}

.gradient-bg-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    border-left: 8px solid #28a745;
}

.gradient-bg-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.05) 100%);
    border-left: 8px solid #ffc107;
}

/* Card Hover Effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #17a2b8, #fd7e14);
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline-marker.completed {
    background: #28a745;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.2);
}

.timeline-marker.current {
    background: #ffc107;
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.2);
    animation: pulse-warning 2s infinite;
}

.timeline-marker.pending {
    background: #6c757d;
    box-shadow: 0 0 0 4px rgba(108, 117, 125, 0.2);
}

.timeline-content {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.timeline-content.completed {
    border-left-color: #28a745;
}

.timeline-content.current {
    border-left-color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

.timeline-content.pending {
    border-left-color: #6c757d;
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.badge i {
    margin-right: 4px;
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #333;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.badge.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #0dcaf0 100%);
    color: white;
}

/* Alert Styles */
.alert {
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.alert:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.alert.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    border-left: 8px solid #28a745;
    color: #155724;
}

.alert.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.05) 100%);
    border-left: 8px solid #ffc107;
    color: #856404;
}

.alert.alert-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(23, 162, 184, 0.05) 100%);
    border-left: 8px solid #17a2b8;
    color: #0c5460;
}

/* Table Styles */
.table.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    overflow: hidden;
}

.table.glass-effect thead {
    background: rgba(23, 162, 184, 0.1);
}

.table.glass-effect thead th {
    border-bottom: 2px solid rgba(23, 162, 184, 0.3);
    padding: 15px;
    font-weight: 600;
    color: #17a2b8;
}

.table.glass-effect tbody tr {
    transition: all 0.3s ease;
}

.table.glass-effect tbody tr:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.01);
}

.table.glass-effect tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Button Gradient */
.btn-gradient {
    background: linear-gradient(135deg, #17a2b8 0%, #fd7e14 100%);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
    color: white;
}

.btn-gradient:active {
    transform: translateY(0);
}

/* Section Title */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #17a2b8 0%, #fd7e14 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

/* Feature Icon */
.feature-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #17a2b8 0%, #fd7e14 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
@keyframes pulse-warning {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 193, 7, 0.4);
    }
}

@keyframes pulse-success {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(40, 167, 69, 0.4);
    }
}

.animate__pulse {
    animation: pulse-warning 2s infinite;
}

/* Responsive Design for Work Order Detail */
@media (max-width: 768px) {
    .timeline::before {
        left: 5px;
    }
    
    .timeline-item {
        padding-left: 30px;
    }
    
    .timeline-marker {
        width: 18px;
        height: 18px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .table.glass-effect {
        font-size: 0.85rem;
    }
    
    .table.glass-effect thead th,
    .table.glass-effect tbody td {
        padding: 8px 10px;
    }
}

@media (max-width: 576px) {
    .glass-effect {
        border-radius: 10px;
    }
    
    .alert {
        padding: 15px;
    }
    
    .btn-gradient {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Card Header Gradient */
.card-header {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(253, 126, 20, 0.1) 100%);
    border-bottom: 2px solid rgba(23, 162, 184, 0.3);
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

/* Focus States */
.btn:focus,
.badge:focus,
a:focus {
    outline: 3px solid rgba(23, 162, 184, 0.5);
    outline-offset: 2px;
}

/* Loading State */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top-color: #17a2b8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Hover Effects for Interactive Elements */
.interactive-hover {
    transition: all 0.3s ease;
}

.interactive-hover:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Status Icons */
.status-icon {
    font-size: 2rem;
    display: inline-block;
    animation: fadeIn 0.5s ease;
}

.status-icon.success {
    color: #28a745;
    animation: pulse-success 2s infinite;
}

.status-icon.warning {
    color: #ffc107;
    animation: pulse-warning 2s infinite;
}

.status-icon.pending {
    color: #6c757d;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #17a2b8 0%, #fd7e14 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Box Shadow Utilities */
.shadow-soft {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.shadow-medium {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.shadow-strong {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

/* Border Utilities */
.border-gradient {
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, #17a2b8, #fd7e14);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}
