/* ============================================================================
   APPOINTMENT WIZARD - SINGLE WINDOW MODERN DESIGN
   ============================================================================
   Version: 1.0.0
   Date: 2026-02-22
   Author: AI MINDLOOP SRL
   
   Full-screen single-window wizard with:
   - All sections visible at once (3 columns on desktop)
   - Toggle header for patient-first vs service-first flow
   - Smart highlighting for active/completed sections
   - Live summary footer with confirm button
   - Accordion layout on mobile
   ============================================================================ */

/* ============================================
   FULL SCREEN OVERLAY
   ============================================ */
.wsw-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    flex-direction: column;
    animation: wswFadeIn 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@keyframes wswFadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

/* ============================================
   HEADER
   ============================================ */
.wsw-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

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

.wsw-header-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wsw-header-title-icon {
    font-size: 24px;
}

/* Flow toggle in header */
.wsw-flow-toggle {
    display: flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.wsw-flow-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #64748b;
    background: transparent;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wsw-flow-btn.active {
    background: white;
    color: #1e293b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wsw-flow-btn:hover:not(.active) {
    color: #475569;
    background: rgba(255,255,255,0.6);
}

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

.wsw-header-close {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #64748b;
    transition: all 0.2s;
}

.wsw-header-close:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
    transform: scale(1.05);
}

/* Mobile flow button */
.wsw-mobile-flow-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: white;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
}

.wsw-mobile-flow-btn:hover {
    background: #f1f5f9;
}

/* ============================================
   MAIN BODY - 3 COLUMNS LAYOUT
   ============================================ */
.wsw-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding: 20px 24px;
    gap: 20px;
}

.wsw-columns {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    min-height: 0;
    overflow: hidden;
}

/* ============================================
   SECTION CARD (Each Column)
   ============================================ */
.wsw-section {
    background: white;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wsw-section.primary {
    border-color: #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.wsw-section.completed {
    border-color: #10b981;
}

.wsw-section.active {
    border-color: #cbd5e1;
}

/* REMOVED: waiting state no longer blocks interaction */

/* Section Header */
.wsw-section-header {
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: #fafbfc;
    border-radius: 18px 18px 0 0;
}

.wsw-section.primary .wsw-section-header {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.wsw-section.completed .wsw-section-header {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.wsw-section.active .wsw-section-header {
    background: #fafbfc;
}

.wsw-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.wsw-section-title-icon {
    font-size: 22px;
}

.wsw-section-title-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

.wsw-section.primary .wsw-section-title-num {
    background: #3b82f6;
    color: white;
}

.wsw-section.completed .wsw-section-title-num {
    background: #10b981;
    color: white;
}

.wsw-section.active .wsw-section-title-num {
    background: #e2e8f0;
    color: #64748b;
}

.wsw-section-status {
    font-size: 18px;
}

/* Section Body */
.wsw-section-body {
    flex: 1;
    padding: 16px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
}

/* Section Selection Summary (shown when completed) */
.wsw-section-selection {
    padding: 14px 16px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #10b981;
    border-radius: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wsw-section-selection-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wsw-section-selection-name {
    font-weight: 700;
    color: #065f46;
    font-size: 15px;
}

.wsw-section-selection-detail {
    font-size: 13px;
    color: #047857;
}

.wsw-section-selection-clear {
    background: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: #64748b;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wsw-section-selection-clear:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.wsw-field {
    margin-bottom: 16px;
}

.wsw-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.wsw-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s;
    background: white;
    color: #1e293b;
    box-sizing: border-box;
}

.wsw-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.wsw-input::placeholder {
    color: #94a3b8;
}

.wsw-textarea {
    resize: vertical;
    min-height: 60px;
    max-height: 120px;
    line-height: 1.4;
}

.wsw-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8.825L.175 3 1.05 2.125 6 7.075 10.95 2.125 11.825 3z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Search with dropdown */
.wsw-search-wrap {
    position: relative;
}

.wsw-search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.wsw-search-results.show {
    display: block;
}

.wsw-search-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.wsw-search-item:last-child {
    border-bottom: none;
}

.wsw-search-item:hover {
    background: #f8fafc;
}

.wsw-search-item-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.wsw-search-item-detail {
    font-size: 12px;
    color: #64748b;
}

.wsw-search-no-results {
    padding: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* Divider */
.wsw-divider {
    display: flex;
    align-items: center;
    margin: 16px 0;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}

.wsw-divider::before,
.wsw-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.wsw-divider span {
    padding: 0 14px;
}

/* ============================================
   DOCTOR / SERVICE CARDS
   ============================================ */
.wsw-card-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 2px;
}

.wsw-card {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.wsw-card:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}

.wsw-card.selected {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.wsw-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 0;
}

.wsw-card-info {
    flex: 1;
    min-width: 0;
}

.wsw-card-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wsw-card-sub {
    font-size: 12px;
    color: #64748b;
}

.wsw-card-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* Consultation Types */
.wsw-ct-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.wsw-ct-card:hover {
    border-color: #93c5fd;
}

.wsw-ct-card.selected {
    border-color: #10b981;
    background: #ecfdf5;
}

.wsw-ct-card.required {
    border-color: #f59e0b;
    animation: wswPulseRequired 2s infinite;
}

@keyframes wswPulseRequired {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}

.wsw-ct-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.wsw-ct-details {
    font-size: 12px;
    color: #64748b;
}

/* Required badge */
.wsw-required-badge {
    background: #fef3c7;
    color: #d97706;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: 8px;
}

/* ============================================
   DATE SELECTOR
   ============================================ */
.wsw-date-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    min-width: 0;
    overflow: hidden;
}

.wsw-date-nav-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #64748b;
    transition: all 0.2s;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wsw-date-nav-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

.wsw-dates-row {
    display: flex;
    gap: 6px;
    flex: 1;
    overflow-x: auto;
    padding: 2px 0 4px 0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
}

.wsw-dates-row::-webkit-scrollbar {
    height: 3px;
}

.wsw-dates-row::-webkit-scrollbar-track {
    background: transparent;
}

.wsw-dates-row::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.wsw-date-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 10px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 52px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.wsw-date-pill:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}

.wsw-date-pill.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}

.wsw-date-pill.today:not(.selected) {
    border-color: #f59e0b;
}

.wsw-date-day {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.7;
}

.wsw-date-num {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.wsw-date-month {
    font-size: 10px;
    opacity: 0.7;
}

/* ============================================
   TIME SLOTS
   ============================================ */
.wsw-slots-container {
    margin-top: 14px;
}

.wsw-slots-section {
    margin-bottom: 14px;
}

.wsw-slots-section:last-child {
    margin-bottom: 0;
}

.wsw-slots-header {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wsw-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.wsw-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.wsw-slot:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.wsw-slot.selected {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    box-shadow: 0 4px 10px rgba(16,185,129,0.15);
}

.wsw-slot-time {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
}

.wsw-slot-end {
    font-size: 10px;
    color: #64748b;
}

.wsw-no-slots {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 16px;
    text-align: center;
}

.wsw-no-slots-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.wsw-no-slots-text {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.wsw-no-slots-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Loading state */
.wsw-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #64748b;
    font-size: 14px;
    gap: 10px;
}

.wsw-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: wswSpin 0.8s linear infinite;
}

@keyframes wswSpin {
    to { transform: rotate(360deg); }
}

/* ============================================
   FOOTER - SUMMARY & CONFIRM
   ============================================ */
.wsw-footer {
    background: white;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-shrink: 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.wsw-footer.ready {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.wsw-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.wsw-summary-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.wsw-summary-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wsw-summary-title {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.wsw-summary-text {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wsw-footer.ready .wsw-summary-title {
    color: #047857;
}

.wsw-footer.ready .wsw-summary-text {
    color: #065f46;
}

.wsw-summary-missing {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wsw-summary-missing-item {
    background: #fef3c7;
    color: #d97706;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
}

.wsw-confirm-btn {
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e2e8f0;
    color: #94a3b8;
    flex-shrink: 0;
}

.wsw-confirm-btn.ready {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(16,185,129,0.35);
}

.wsw-confirm-btn.ready:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16,185,129,0.45);
}

/* ============================================
   MESSAGES & ALERTS
   ============================================ */
.wsw-info {
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    padding: 12px 14px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 14px;
}

.wsw-info-text {
    font-size: 13px;
    color: #1e40af;
    line-height: 1.5;
}

.wsw-warning {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 12px 14px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 14px;
}

.wsw-warning-text {
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}

.wsw-error {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 12px 14px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 14px;
}

.wsw-error-text {
    font-size: 13px;
    color: #dc2626;
    line-height: 1.5;
}

/* ============================================
   RESPONSIVE: TABLET (2 columns + stacked)
   ============================================ */
@media (max-width: 1200px) {
    .wsw-columns {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    
    .wsw-section:nth-child(3) {
        grid-column: span 2;
    }
    
    .wsw-header {
        padding: 0 16px;
    }
    
    .wsw-body {
        padding: 16px;
    }
}

/* ============================================
   RESPONSIVE: MOBILE (<768px) - ACCORDION
   ============================================ */
@media (max-width: 768px) {
    .wsw-header {
        height: 56px;
        padding: 0 12px;
    }
    
    .wsw-header-title {
        font-size: 16px;
    }
    
    .wsw-flow-toggle {
        display: none;
    }
    
    .wsw-mobile-flow-btn {
        display: flex;
    }
    
    .wsw-body {
        padding: 12px;
        gap: 12px;
    }
    
    .wsw-columns {
        display: flex;
        flex-direction: column;
        gap: 12px;
        overflow-y: auto;
    }
    
    .wsw-section {
        flex-shrink: 0;
    }
    
    /* Accordion behavior on mobile */
    .wsw-section.collapsed .wsw-section-body {
        display: none;
    }
    
    .wsw-section.collapsed {
        cursor: pointer;
    }
    
    .wsw-section-header {
        padding: 14px 16px;
    }
    
    .wsw-section-body {
        padding: 14px 16px;
    }
    
    /* Footer on mobile */
    .wsw-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 16px 16px 0 0;
        padding: 14px 16px;
        flex-direction: column;
        gap: 12px;
        z-index: 10;
    }
    
    .wsw-summary {
        width: 100%;
    }
    
    .wsw-confirm-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
    
    /* Add padding at bottom to account for fixed footer */
    .wsw-columns {
        padding-bottom: 140px;
    }
    
    .wsw-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   RESPONSIVE: SMALL PHONE (<420px)
   ============================================ */
@media (max-width: 420px) {
    .wsw-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wsw-date-pill {
        min-width: 48px;
        padding: 6px 8px;
    }
    
    .wsw-date-num {
        font-size: 16px;
    }
    
    .wsw-input {
        font-size: 16px; /* Prevent iOS zoom */
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.wsw-hidden {
    display: none !important;
}

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

.wsw-mt-2 {
    margin-top: 8px;
}

.wsw-mb-2 {
    margin-bottom: 8px;
}

.wsw-mb-3 {
    margin-bottom: 12px;
}

/* ============================================
   MANUAL TIME MODE - Programare în afara orelor
   ============================================ */

/* Butonul pentru activarea modului manual */
.wsw-manual-time-section {
    margin-top: 16px;
    text-align: center;
}

.wsw-manual-time-btn {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wsw-manual-time-btn:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Container pentru input-urile manuale */
.wsw-manual-time-container {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #f59e0b;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.wsw-manual-time-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.wsw-manual-time-icon {
    font-size: 24px;
}

.wsw-manual-time-title {
    font-size: 16px;
    font-weight: 700;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wsw-manual-time-subtitle {
    font-size: 13px;
    color: #b45309;
    margin-bottom: 20px;
}

/* Formularul cu inputuri */
.wsw-manual-time-form {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.wsw-manual-time-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.wsw-manual-time-row:last-child {
    margin-bottom: 0;
}

.wsw-manual-time-row .wsw-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    min-width: 100px;
    text-align: right;
}

.wsw-manual-time-inputs {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wsw-manual-time-separator {
    font-size: 20px;
    font-weight: 700;
    color: #6b7280;
}

.wsw-select-small {
    width: 70px !important;
    padding: 8px 12px !important;
    font-size: 16px !important;
    text-align: center;
}

.wsw-select-medium {
    width: 120px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
}

/* Warning message */
.wsw-manual-time-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fef9e7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    text-align: left;
}

.wsw-warning-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.wsw-warning-text {
    font-size: 12px;
    color: #92400e;
    line-height: 1.4;
}

/* Buton înapoi */
.wsw-manual-time-back {
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wsw-manual-time-back:hover {
    background: white;
    border-color: #9ca3af;
    color: #374151;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .wsw-manual-time-container {
        padding: 16px;
    }
    
    .wsw-manual-time-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .wsw-manual-time-row .wsw-label {
        text-align: center;
        min-width: auto;
    }
    
    .wsw-select-small {
        width: 60px !important;
    }
}

/* Buton mic pentru când există sloturi */
.wsw-manual-time-bottom {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
}

.wsw-manual-time-btn-small {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px dashed #cbd5e1;
    padding: 10px 16px;
    font-size: 13px;
    color: #64748b;
}

.wsw-manual-time-btn-small:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    color: #92400e;
}

/* Info tip consultație în modul manual */
.wsw-manual-time-consultation-info {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #475569;
}

.wsw-manual-time-consultation-info strong {
    color: #1e293b;
}
