/* OM Planner - CSS */
/* Distinctive warm productivity aesthetic inspired by the brand */

:root {
    /* Brand Colors - From Logo */
    --primary-orange: #E8905C;
    --primary-gold: #C9B479;
    --accent-coral: #D97B52;
    --neutral-dark: #2C3E50;
    --neutral-slate: #34495E;
    
    /* Extended Palette */
    --bg-cream: #FBF8F3;
    --bg-white: #FFFFFF;
    --bg-warm: #FFF5EB;
    --text-primary: #2C3543;
    --text-secondary: #5D6570;
    --text-muted: #9BA3AF;
    
    /* Status Colors */
    --status-pending: #E8905C;
    --status-progress: #4682B4;
    --status-completed: #6B8E23;
    
    /* Shadows */
    --shadow-soft: 0 2px 8px rgba(232, 144, 92, 0.08);
    --shadow-medium: 0 4px 16px rgba(232, 144, 92, 0.12);
    --shadow-strong: 0 8px 32px rgba(232, 144, 92, 0.16);
    
    /* Typography */
    --font-display: 'Instrument Serif', serif;
    --font-body: 'Montserrat', 'Inter',sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-cream);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.main-header {
    background: var(--bg-white);
    border-bottom: 1px solid rgba(232, 144, 92, 0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-section .logo {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-section .logo:hover {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    gap: var(--spacing-sm);
}

.nav-btn {
    background: transparent;
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-gold));
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.nav-btn:hover,
.nav-btn.active {
    color: var(--primary-orange);
    background: var(--bg-warm);
}

.nav-btn.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-icon {
    font-size: 1.2rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.current-time {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: var(--bg-warm);
    border-radius: var(--radius-md);
}

.user-menu {
    background: linear-gradient(135deg, var(--primary-orange), var(--accent-coral));
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.user-menu:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.user-avatar {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.view-container {
    display: none;
    animation: fadeIn 0.4s ease;
}

.view-container.active {
    display: block;
}

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

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid rgba(232, 144, 92, 0.15);
}

.view-title h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-weight: 400;
}

.view-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange), var(--accent-coral));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-primary);
    border: 2px solid rgba(232, 144, 92, 0.2);
}

.btn-secondary:hover {
    background: var(--bg-warm);
    border-color: var(--primary-orange);
}

.btn-icon {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Timeline */
.timeline-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-medium);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.timeline-header h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
}

.timeline-controls {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-warm);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
}

.timeline-view-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.timeline-view-btn.active {
    background: white;
    color: var(--primary-orange);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.timeline-content {
    display: grid;
    gap: var(--spacing-md);
}

.timeline-slot {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-warm);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-orange);
    transition: all 0.3s ease;
}

.timeline-slot:hover {
    background: white;
    box-shadow: var(--shadow-soft);
    transform: translateX(4px);
}

.timeline-time {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-secondary);
    min-width: 80px;
    padding-top: 0.25rem;
}

.timeline-task {
    flex: 1;
}

.timeline-task-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.timeline-task-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    gap: var(--spacing-sm);
}

.task-ticket-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--primary-orange);
    color: white;
}

/* Tickets Grid */
.tickets-overview {
    margin-top: var(--spacing-xl);
}

.tickets-overview h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: var(--spacing-lg);
}

.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.ticket-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-medium);
    border-left: 6px solid var(--primary-orange);
    transition: all 0.3s ease;
    cursor: pointer;
}

.ticket-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.ticket-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.ticket-card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.ticket-card-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.ticket-status-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-status-badge.pending {
    background: rgba(232, 144, 92, 0.15);
    color: var(--status-pending);
}

.ticket-status-badge.completed {
    background: rgba(107, 142, 35, 0.15);
    color: var(--status-completed);
}

.ticket-progress {
    margin-top: var(--spacing-md);
}

.ticket-progress-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.progress-bar {
    height: 8px;
    background: rgba(232, 144, 92, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-gold));
    border-radius: 4px;
    transition: width 0.6s ease;
}

.ticket-clients {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(232, 144, 92, 0.1);
}

.client-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.client-name {
    color: var(--text-primary);
    font-weight: 500;
}

.client-task-count {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Tickets List View */
.tickets-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.ticket-detail-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.ticket-detail-header {
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, var(--bg-warm), white);
    border-left: 6px solid var(--primary-orange);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-detail-info h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.ticket-detail-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.ticket-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-soft);
}

.icon-btn:hover {
    background: var(--bg-warm);
    transform: scale(1.1);
}

.ticket-clients-section {
    padding: var(--spacing-lg);
}

.clients-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.clients-header h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-primary);
}

.add-client-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-warm);
    border: 2px dashed var(--primary-orange);
    border-radius: var(--radius-sm);
    color: var(--primary-orange);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-client-btn:hover {
    background: var(--primary-orange);
    color: white;
    border-style: solid;
}

.client-card {
    background: var(--bg-warm);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.client-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.client-card-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: var(--spacing-sm);
}

.task-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.75rem;
    background: white;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.task-item:hover {
    box-shadow: var(--shadow-soft);
    transform: translateX(4px);
}

.task-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid var(--primary-orange);
    cursor: pointer;
    flex-shrink: 0;
}

.task-checkbox.checked {
    background: var(--status-completed);
    border-color: var(--status-completed);
    position: relative;
}

.task-checkbox.checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.task-content {
    flex: 1;
}

.task-title {
    color: var(--text-primary);
    font-weight: 500;
}

.task-item.completed .task-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.task-time {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-family: var(--font-display);
}

.task-priority {
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.task-priority.high {
    background: rgba(255, 165, 0, 0.15);
    color: #FF8C00;
}

.task-priority.urgent {
    background: rgba(220, 20, 60, 0.15);
    color: #DC143C;
}

/* History */
.history-filters {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.history-day {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-medium);
}

.history-day-header {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid rgba(232, 144, 92, 0.15);
}

.history-task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(232, 144, 92, 0.05);
}

.history-task-item:last-child {
    border-bottom: none;
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.input-field {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid rgba(232, 144, 92, 0.15);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: all 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(232, 144, 92, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.color-picker {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.color-picker input[type="color"] {
    width: 60px;
    height: 40px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.color-presets {
    display: flex;
    gap: 0.5rem;
}

.color-preset {
    width: 32px;
    height: 32px;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-preset:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-strong);
    animation: slideUp 0.3s ease;
}

.modal-small {
    max-width: 480px;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 2px solid rgba(232, 144, 92, 0.15);
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-warm);
    color: var(--primary-orange);
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(232, 144, 92, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        padding: 0 var(--spacing-sm);
        height: 70px;
    }
    
    .logo-section .logo {
        height: 50px;
    }
    
    .main-nav {
        gap: 0.25rem;
    }
    
    .nav-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .nav-icon {
        font-size: 1rem;
    }
    
    .current-time {
        display: none;
    }
    
    .view-title h1 {
        font-size: 2rem;
    }
    
    .tickets-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        border-radius: var(--radius-lg);
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.3;
}

.empty-state-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}
/* 
EXTENDED STYLES FOR OM PLANNER
Add these styles to your existing style.css file
*/

/* ==================== TICKET TYPES GRID ==================== */
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.type-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-medium);
    border-left: 6px solid var(--primary-orange);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.type-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.type-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.type-icon-large {
    font-size: 3rem;
    line-height: 1;
}

.type-card-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.type-card-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.type-card-stats {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(232, 144, 92, 0.1);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.type-card-actions {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.type-card:hover .type-card-actions {
    opacity: 1;
}

/* ==================== SCHEDULE / TIMELINE VIEW ==================== */
.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.schedule-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.schedule-title h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.schedule-date-badge {
    background: var(--bg-accent);
    color: var(--primary-orange);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule-controls {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.date-nav-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--bg-light);
    padding: 0.25rem;
    border-radius: var(--radius-lg);
}

.date-nav-btn {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.date-nav-btn:hover {
    background: var(--bg-white);
    color: var(--primary-orange);
    box-shadow: var(--shadow-soft);
}

.date-nav-btn.today-btn {
    background: var(--primary-orange);
    color: white;
    width: auto;
    padding: 0 1rem;
    font-size: 0.875rem;
    gap: 0.5rem;
}

.date-nav-btn.today-btn:hover {
    background: var(--primary-orange-dark);
    transform: translateY(-1px);
}

.schedule-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-medium);
    overflow-x: auto;
    border: 1px solid rgba(232, 144, 92, 0.1);
    transition: box-shadow 0.3s ease;
}

.schedule-container:hover {
    box-shadow: var(--shadow-large);
}

.schedule-timeline {
    position: relative;
    min-height: 600px;
    display: flex;
}

.timeline-hours {
    position: sticky;
    left: 0;
    width: 100px;
    background: linear-gradient(to right, var(--bg-white), rgba(255, 255, 255, 0.95));
    border-right: 2px solid var(--primary-orange);
    border-right-style: dashed;
    z-index: 5;
    flex-shrink: 0;
}

.hour-slot {
    height: 60px;
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(232, 144, 92, 0.08);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    font-family: var(--font-display);
    font-weight: 500;
    position: relative;
}

.hour-slot::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 0;
    height: 100%;
    width: 2px;
    background: transparent;
}

.hour-slot.current-hour {
    background: linear-gradient(90deg, rgba(232, 144, 92, 0.08), transparent);
    color: var(--primary-orange-dark);
    font-weight: 700;
    border-bottom-color: rgba(232, 144, 92, 0.2);
}

.timeline-events {
    flex: 1;
    position: relative;
    min-height: 600px;
    padding: 0 var(--spacing-lg);
    margin-left: 20px;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 59px,
        rgba(232, 144, 92, 0.03) 60px
    );
}

.timeline-event {
    position: absolute;
    left: var(--spacing-lg);
    right: var(--spacing-lg);
    background: linear-gradient(135deg, var(--bg-white) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-left: 4px solid var(--primary-orange);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    border: 1px solid rgba(232, 144, 92, 0.1);
    border-left-width: 4px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.timeline-event::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 0% 50%, rgba(232, 144, 92, 0.02), transparent);
    pointer-events: none;
}

.timeline-event:hover {
    transform: translateX(6px) translateY(-2px);
    box-shadow: var(--shadow-large);
    z-index: 10;
    background: white;
    border-color: var(--primary-orange);
}

.timeline-event.running {
    background: linear-gradient(135deg, rgba(232, 144, 92, 0.05), rgba(255, 255, 255, 0.95));
    border-left-width: 6px;
    box-shadow: 0 4px 12px rgba(232, 144, 92, 0.15);
}

.timeline-event.running::after {
    content: '●';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    color: var(--primary-orange);
    font-size: 0.75rem;
    animation: pulse 1.5s infinite;
}

.timeline-event-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
}

.timeline-event-title .type-icon {
    font-size: 1rem;
}

.timeline-event-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(232, 144, 92, 0.06);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    width: fit-content;
}

.timeline-event-progress {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-light);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.progress-bar-mini {
    width: 60px;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill-mini {
    height: 100%;
    background: var(--primary-orange);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.timeline-event-clients {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.timeline-current-time-marker {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-orange), rgba(232, 144, 92, 0.3));
    z-index: 20;
    box-shadow: 0 0 12px rgba(232, 144, 92, 0.6);
    pointer-events: none;
}

.timeline-current-time-marker::before {
    content: '';
    position: absolute;
    left: -8px;
    top: -5px;
    width: 12px;
    height: 12px;
    background: var(--primary-orange);
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(232, 144, 92, 0.8);
    animation: pulse-glow 2s infinite;
}

.timeline-current-time-marker::after {
    content: 'Now';
    position: absolute;
    left: 12px;
    top: -12px;
    background: var(--primary-orange);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-soft);
}

.no-events {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    font-size: 0.9375rem;
    border: 2px dashed rgba(232, 144, 92, 0.2);
    margin: var(--spacing-md);
}

/* Date picker styling */
.schedule-date-picker {
    padding: 0.625rem 1rem;
    border: 1px solid rgba(232, 144, 92, 0.2);
    border-radius: var(--radius-lg);
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--text-primary);
    background: var(--bg-white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.schedule-date-picker:hover,
.schedule-date-picker:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(232, 144, 92, 0.1);
    outline: none;
}

/* Weekend styling */
.timeline-events.weekend {
    background: repeating-linear-gradient(
        to bottom,
        rgba(232, 144, 92, 0.02),
        rgba(232, 144, 92, 0.02) 59px,
        rgba(232, 144, 92, 0.04) 60px
    );
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 16px rgba(232, 144, 92, 0.8);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 24px rgba(232, 144, 92, 1);
        transform: scale(1.1);
    }
}

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

.timeline-event {
    animation: slideIn 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .schedule-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .schedule-controls {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .timeline-hours {
        width: 70px;
    }
    
    .hour-slot {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .timeline-event {
        padding: var(--spacing-sm);
    }
    
    .timeline-event-title {
        font-size: 0.875rem;
    }
}

/* Print styles */
@media print {
    .schedule-controls,
    .date-nav-group,
    .timeline-current-time-marker {
        display: none;
    }
    
    .timeline-event {
        break-inside: avoid;
        border: 1px solid #ddd;
        box-shadow: none;
    }
}

/* ==================== ENHANCED TICKET CREATION FORM ==================== */
.form-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-cream);
    z-index: 1500;
    overflow-y: auto;
    animation: slideInRight 0.3s ease;
}

.form-page.hidden {
    display: none;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.form-page-header {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.btn-back {
    background: var(--bg-warm);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-orange);
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: var(--primary-orange);
    color: white;
    transform: scale(1.1);
}

.ticket-creation-form {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-xl);
}

.form-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-soft);
}

.form-section h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid rgba(232, 144, 92, 0.15);
}

.type-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--spacing-md);
}

.type-selector-card {
    background: var(--bg-warm);
    border: 3px solid transparent;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.type-selector-card:hover {
    background: white;
    border-color: rgba(232, 144, 92, 0.3);
    transform: translateY(-2px);
}

.type-selector-card.selected {
    background: white;
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-medium);
}

.type-selector-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.type-selector-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.clients-builder {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.client-input-group {
    background: var(--bg-warm);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    position: relative;
}

.client-input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.client-input-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.remove-client-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-client-btn:hover {
    background: rgba(220, 20, 60, 0.1);
    color: #DC143C;
}

.priority-selector {
    display: flex;
    gap: 0.5rem;
    margin-top: var(--spacing-sm);
}

.priority-btn {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid rgba(232, 144, 92, 0.2);
    background: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.priority-btn:hover {
    border-color: var(--primary-orange);
}

.priority-btn.active {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
}

.priority-btn.high.active {
    background: #FF8C00;
    border-color: #FF8C00;
}

.priority-btn.urgent.active {
    background: #DC143C;
    border-color: #DC143C;
}

.tasks-textarea {
    min-height: 120px;
    font-family: var(--font-body);
    line-height: 1.8;
}

.tasks-textarea-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 2px solid rgba(232, 144, 92, 0.15);
}

/* ==================== ICON PICKER ==================== */
.icon-picker {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.icon-picker input {
    max-width: 80px;
    text-align: center;
    font-size: 1.5rem;
}

.icon-presets {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.icon-preset {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(232, 144, 92, 0.2);
    background: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.icon-preset:hover {
    border-color: var(--primary-orange);
    transform: scale(1.1);
    box-shadow: var(--shadow-soft);
}

/* ==================== PRIORITY INDICATORS ==================== */
.client-priority-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.client-priority-badge.normal {
    background: rgba(201, 180, 121, 0.15);
    color: var(--primary-gold);
}

.client-priority-badge.high {
    background: rgba(255, 140, 0, 0.15);
    color: #FF8C00;
}

.client-priority-badge.urgent {
    background: rgba(220, 20, 60, 0.15);
    color: #DC143C;
}

/* ==================== POSTPONE INDICATORS ==================== */
.postpone-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #FF8C00;
    background: rgba(255, 140, 0, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
}

.postpone-count {
    font-weight: 600;
}

/* ==================== RECURRING TICKET INDICATOR ==================== */
.recurring-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: rgba(147, 112, 219, 0.15);
    color: #9370DB;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ==================== DRAG AND DROP ==================== */
.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.drop-zone {
    border: 2px dashed var(--primary-orange);
    background: rgba(232, 144, 92, 0.05);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    color: var(--text-muted);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drop-zone.active {
    background: rgba(232, 144, 92, 0.1);
    border-color: var(--primary-orange);
}

/* ==================== RESPONSIVE UPDATES ==================== */
@media (max-width: 768px) {
    .types-grid {
        grid-template-columns: 1fr;
    }
    
    .type-selector-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .schedule-controls {
        flex-wrap: wrap;
    }
    
    .timeline-hours {
        width: 60px;
    }
    
    .timeline-events {
        margin-left: 60px;
    }
    
    .hour-slot {
        font-size: 0.75rem;
        padding: 0.25rem;
    }
    
    .ticket-creation-form {
        padding: var(--spacing-md);
    }
    
    .form-section {
        padding: var(--spacing-md);
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

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

.slide-in-up {
    animation: slideInUp 0.3s ease;
}

/* ==================== STAT CARDS (for enhanced dashboard) ==================== */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--primary-orange);
}

.stat-card-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-card-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-icon {
    font-size: 1.5rem;
    float: right;
    opacity: 0.3;
}



/* Add to your existing CSS */

/* Running indicators */
.running-badge {
    background: #E8905C;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

.ticket-card.running,
.ticket-detail-card.running,
.timeline-event.running,
.timeline-slot.running {
    background: linear-gradient(45deg, rgba(232, 144, 92, 0.05), transparent);
}

.ticket-card.running {
    border: 2px solid #E8905C;
}

.running-indicator {
    color: #E8905C;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Horizontal scroll for active tickets */
.tickets-scroll-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: thin;
}

.tickets-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.tickets-scroll-container::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.scroll-hint {
    color: #999;
    font-size: 12px;
    font-style: italic;
}

/* Highlight animation */
.highlight {
    animation: highlight-pulse 2s ease-in-out;
}

@keyframes highlight-pulse {
    0%, 100% { background: transparent; }
    50% { background: rgba(232, 144, 92, 0.1); }
}

/* Task time display */
.task-time {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

/* Upcoming ticket style */
.ticket-card.upcoming {
    opacity: 0.8;
}

/* Active now section */
.active-tickets-section {
    margin-bottom: 2rem;
}







/* ===== REAL TOAST MODAL - CENTERED WITH OVERLAY ===== */
.toast-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    backdrop-filter: blur(5px);
}

.toast-modal-overlay.hidden {
    display: none;
}

.toast-modal-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
}

.toast-modal-box {
    background: white;
    border-radius: 16px;
    padding: 30px 40px;
    max-width: 450px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalPop 0.3s ease;
    position: relative;
    border-top: 6px solid;
}

.toast-modal-box.success { border-top-color: #10b981; }
.toast-modal-box.error { border-top-color: #ef4444; }
.toast-modal-box.warning { border-top-color: #f59e0b; }
.toast-modal-box.info { border-top-color: #3b82f6; }

.toast-modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 50%;
}

.toast-modal-message {
    font-size: 18px;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 24px;
    line-height: 1.6;
}

.toast-modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.toast-modal-close-btn:hover {
    background: #f1f5f9;
    color: #475569;
}

@keyframes modalPop {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}


/* ===== REAL CONFIRM MODAL - CENTERED WITH OVERLAY ===== */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999998;
    backdrop-filter: blur(5px);
}

.confirm-modal-overlay.hidden {
    display: none;
}

.confirm-modal-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
}

.confirm-modal-box {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
    animation: confirmPop 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.confirm-modal-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.confirm-modal-header h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: #0f172a;
}

.confirm-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.2s;
}

.confirm-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.confirm-modal-body {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.confirm-modal-icon {
    font-size: 48px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff7ed;
    border-radius: 50%;
    color: #e8905c;
    margin-bottom: 8px;
}

.confirm-modal-body p {
    margin: 0;
    font-size: 1.1rem;
    color: #334155;
    line-height: 1.6;
    font-weight: 500;
}

.confirm-modal-actions {
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8fafc;
}

.confirm-modal-actions .btn-secondary,
.confirm-modal-actions .btn-primary {
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s;
}

.confirm-modal-actions .btn-secondary {
    background: white;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.confirm-modal-actions .btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.confirm-modal-actions .btn-primary {
    background: #e8905c;
    border: none;
    color: white;
}

.confirm-modal-actions .btn-primary:hover {
    background: #d47c4a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 144, 92, 0.3);
}

@keyframes confirmPop {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}



/* ==================== EDIT MODAL ==================== */
.modal-large {
    max-width: 700px !important;
    width: 90%;
}

#editTicketModal .modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

#editTicketModal .form-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

#editTicketModal .form-section:last-child {
    border-bottom: none;
}

#editTicketModal h3 {
    font-size: 1.1rem;
    color: #e8905c;
    margin-bottom: 16px;
    font-weight: 600;
}

#editTicketModal .type-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

#editTicketModal .type-selector-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

#editTicketModal .type-selector-card:hover {
    border-color: #e8905c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 144, 92, 0.1);
}

#editTicketModal .type-selector-card.selected {
    border-color: #e8905c;
    background: #fff7ed;
}

#editTicketModal .type-selector-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

#editTicketModal .type-selector-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}



/* ==================== EDIT MODAL - TASKS MANAGEMENT ==================== */
.modal-xl {
    max-width: 900px !important;
    width: 95%;
}

#editTicketModal .modal-content {
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
}

#editTicketModal .modal-body {
    padding: 24px;
}

#editTicketModal .form-section {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e2e8f0;
}

#editTicketModal .form-section:last-child {
    border-bottom: none;
}

#editTicketModal h3 {
    font-size: 1.1rem;
    color: #e8905c;
    margin-bottom: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tasks Management Section */
.tasks-management-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px !important;
    border: 1px solid #e2e8f0 !important;
}

.section-header-with-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header-with-actions h3 {
    margin-bottom: 0;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.edit-tasks-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Task Item */
.edit-task-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.edit-task-item:hover {
    border-color: #e8905c;
    box-shadow: 0 4px 12px rgba(232, 144, 92, 0.08);
}

.edit-task-item.completed {
    background: #f8fafc;
    opacity: 0.8;
}

.edit-task-checkbox {
    margin-top: 4px;
}

.edit-task-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #10b981;
}

.edit-task-content {
    flex: 1;
}

.edit-task-title-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.edit-task-title-input:focus {
    border-color: #e8905c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 144, 92, 0.1);
}

.edit-task-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.edit-task-time {
    padding: 4px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #475569;
}

.edit-task-priority {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
}

.edit-task-priority.normal {
    background: #e2e8f0;
    color: #475569;
}

.edit-task-priority.high {
    background: #fef3c7;
    color: #d97706;
}

.edit-task-priority.urgent {
    background: #fee2e2;
    color: #dc2626;
}

.edit-task-actions {
    display: flex;
    gap: 8px;
}

.edit-task-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    padding: 6px;
    cursor: pointer;
    border-radius: 6px;
    color: #64748b;
    transition: all 0.2s;
}

.edit-task-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.edit-task-btn.delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Add Task Form */
.add-task-form {
    background: white;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 16px;
    margin-top: 8px;
}

.add-task-form input,
.add-task-form select {
    margin-bottom: 12px;
}

.add-task-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
}

/* Clients List */
.edit-clients-list {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px;
}

.edit-client-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
}

.edit-client-name {
    font-weight: 600;
    color: #0f172a;
}

.edit-client-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.edit-client-badge.normal {
    background: #e2e8f0;
    color: #475569;
}

.edit-client-badge.high {
    background: #fef3c7;
    color: #d97706;
}

.edit-client-badge.urgent {
    background: #fee2e2;
    color: #dc2626;
}

/* Task count badge */
.task-count-badge {
    background: #e8905c;
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}




/* ==================== SCHEDULE VIEW - WITH SCROLLBAR ==================== */
.schedule-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    position: relative;
    height: 650px; /* Fixed height for scrollbar */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(232, 144, 92, 0.1);
}

.schedule-timeline-wrapper {
    display: flex;
    height: 100%;
    overflow-y: auto; /* VERTICAL SCROLLBAR */
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth; /* Smooth scrolling */
}

/* Custom scrollbar styling */
.schedule-timeline-wrapper::-webkit-scrollbar {
    width: 10px;
}

.schedule-timeline-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.schedule-timeline-wrapper::-webkit-scrollbar-thumb {
    background: #e8905c;
    border-radius: 10px;
    border: 2px solid #f1f5f9;
}

.schedule-timeline-wrapper::-webkit-scrollbar-thumb:hover {
    background: #d47c4a;
}

/* Firefox scrollbar */
.schedule-timeline-wrapper {
    scrollbar-width: thin;
    scrollbar-color: #e8905c #f1f5f9;
}

.timeline-hours {
    position: sticky;
    left: 0;
    width: 100px;
    background: white;
    border-right: 2px dashed rgba(232, 144, 92, 0.3);
    flex-shrink: 0;
    z-index: 10;
    height: 1440px; /* 24 hours * 60px */
}

.timeline-events {
    flex: 1;
    position: relative;
    height: 1440px; /* 24 hours * 60px */
    margin-left: 10px;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 59px,
        rgba(232, 144, 92, 0.03) 60px
    );
}

.hour-slot {
    height: 60px;
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    border-bottom: 1px solid rgba(232, 144, 92, 0.08);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    font-family: var(--font-display);
    font-weight: 500;
    position: relative;
}

.hour-slot.current-hour {
    background: linear-gradient(90deg, rgba(232, 144, 92, 0.12), transparent);
    color: #e8905c;
    font-weight: 700;
    border-bottom: 2px solid #e8905c;
    position: relative;
}

.hour-slot.current-hour::before {
    content: '▶';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    color: #e8905c;
    font-size: 12px;
    animation: pulse 1.5s infinite;
}

/* Current time marker - fixed position indicator */
.timeline-current-time-marker {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e8905c, #f5b041);
    z-index: 30;
    box-shadow: 0 0 12px rgba(232, 144, 92, 0.6);
    pointer-events: none;
}

.timeline-current-time-marker::before {
    content: '●';
    position: absolute;
    left: 95px;
    top: -8px;
    color: #e8905c;
    font-size: 18px;
    text-shadow: 0 0 8px rgba(232, 144, 92, 0.8);
    animation: pulse-glow 1.5s infinite;
}

.timeline-current-time-marker::after {
    content: 'NOW';
    position: absolute;
    left: 120px;
    top: -20px;
    background: #e8905c;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(232, 144, 92, 0.3);
    animation: float 2s infinite ease-in-out;
}

/* Timeline event styling */
.timeline-event {
    position: absolute;
    left: 20px;
    right: 20px;
    background: white;
    border-left: 6px solid var(--primary-orange);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    border: 1px solid rgba(232, 144, 92, 0.15);
    border-left-width: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.timeline-event:hover {
    transform: translateX(4px) translateY(-2px);
    box-shadow: 0 12px 24px rgba(232, 144, 92, 0.15);
    z-index: 20;
    background: white;
    border-color: #e8905c;
}

.timeline-event.running {
    background: linear-gradient(135deg, rgba(232, 144, 92, 0.05), white);
    border-left-width: 8px;
    box-shadow: 0 8px 20px rgba(232, 144, 92, 0.2);
}

.timeline-event.running::after {
    content: '● LIVE';
    position: absolute;
    top: 12px;
    right: 16px;
    color: #e8905c;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(232, 144, 92, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
    animation: pulse 1.5s infinite;
}

.timeline-event-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.timeline-event-time {
    font-size: 0.75rem;
    color: #64748b;
    font-family: monospace;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
}

.timeline-event-progress {
    font-size: 0.75rem;
    color: #475569;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 20px;
}

/* Empty state */
.no-events {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    background: #f8fafc;
    border-radius: 12px;
    color: #94a3b8;
    font-size: 0.95rem;
    border: 2px dashed #cbd5e1;
    margin: 20px;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 12px rgba(232, 144, 92, 0.8);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(232, 144, 92, 1);
        transform: scale(1.1);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-hours {
        width: 70px;
    }
    
    .hour-slot {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .timeline-event {
        padding: 10px 12px;
    }
    
    .timeline-event-title {
        font-size: 0.85rem;
    }
}


/* ==================== RESPONSIVE HEADER - COMPLETE FIX ==================== */

/* Base Header Styles */
.main-header {
    background: var(--bg-white);
    border-bottom: 1px solid rgba(232, 144, 92, 0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: all 0.3s ease;
}

/* Logo */
.logo-section .logo {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-section .logo:hover {
    transform: scale(1.05);
}

/* Navigation */
.main-nav {
    display: flex;
    gap: var(--spacing-sm);
}

.nav-btn {
    background: transparent;
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-gold));
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.nav-btn:hover,
.nav-btn.active {
    color: var(--primary-orange);
    background: var(--bg-warm);
}

.nav-btn.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-icon {
    font-size: 1.2rem;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.current-time {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: var(--bg-warm);
    border-radius: var(--radius-md);
    white-space: nowrap;
}

/* Mobile Menu Button - Hidden by Default */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-orange);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: var(--bg-warm);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Large Tablets (1024px) */
@media (max-width: 1024px) {
    .header-content {
        padding: 0 var(--spacing-md);
    }
    
    .nav-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav-btn span:not(.nav-icon) {
        display: none; /* Hide text, show only icons */
    }
    
    .nav-icon {
        font-size: 1.3rem;
        margin: 0;
    }
    
    .current-time {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
    
    .logo-section .logo {
        height: 50px;
    }
}

/* Tablets (768px) */
@media (max-width: 768px) {
    .header-content {
        height: 70px;
        padding: 0 var(--spacing-sm);
        position: relative;
    }
    
    .logo-section .logo {
        height: 45px;
    }
    
    /* Hide current time on tablets */
    .current-time {
        display: none;
    }
    
    /* Make nav buttons smaller */
    .nav-btn {
        padding: 0.6rem 0.8rem;
    }
    
    .nav-icon {
        font-size: 1.2rem;
    }
}

/* Mobile (640px) */
@media (max-width: 640px) {
    .header-content {
        height: 60px;
        padding: 0 var(--spacing-sm);
    }
    
    .logo-section .logo {
        height: 40px;
    }
    
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hide main nav by default on mobile */
    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        border-bottom: 2px solid rgba(232, 144, 92, 0.15);
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .nav-btn span:not(.nav-icon) {
        display: inline-block; /* Show text on mobile */
    }
    
    .nav-btn::after {
        display: none;
    }
    
    .nav-btn.active {
        background: var(--bg-warm);
        border-radius: var(--radius-md);
    }
    
    .header-actions {
        gap: var(--spacing-sm);
    }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
    .header-content {
        height: 55px;
    }
    
    .logo-section .logo {
        height: 35px;
    }
    
    .mobile-menu-btn {
        font-size: 1.6rem;
    }
    
    .main-nav {
        top: 55px;
    }
    
    .nav-btn {
        padding: 0.875rem;
    }
}

/* Very Small Mobile (360px) */
@media (max-width: 360px) {
    .logo-section .logo {
        height: 30px;
    }
    
    .mobile-menu-btn {
        font-size: 1.4rem;
    }
}
/* ============================= */
/* 📱 MOBILE ENHANCEMENTS */
/* ============================= */

@media (max-width: 768px) {

    .tickets-list {
        gap: var(--spacing-md);
    }

    .ticket-detail-card {
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-soft);
    }

    .ticket-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
    }

    .ticket-detail-info h3 {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .ticket-detail-meta {
        flex-wrap: wrap;
        gap: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .ticket-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 0.5rem;
    }

    .icon-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .ticket-clients-section {
        padding: var(--spacing-md);
    }

    .client-card {
        padding: var(--spacing-sm);
        border-radius: var(--radius-sm);
    }

    .task-item:hover {
        transform: none;
        box-shadow: none;
    }
}

