/* /mobile/styles/preview.css */
/* Quick preview panel styling */

.quick-preview {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--mobile-card);
    border-top: 1px solid var(--mobile-border);
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    
    z-index: 100;
    height: 60vh; /* 60% of viewport height to prevent cutoff */
    overflow-y: auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    
    /* FIXED: Ensure preview is hidden by default */
    display: none;
}

.quick-preview.show {
    transform: translateY(0);
    display: block; /* FIXED: Show the panel when show class is added */
}

.preview-handle {
    width: 40px;
    height: 4px;
    background: var(--mobile-border);
    border-radius: 2px;
    margin: 8px auto;
    cursor: pointer;
    position: relative;
}

.preview-close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border: 1px solid var(--mobile-border);
    border-radius: 50%;
    color: var(--mobile-text);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    
}

.preview-close-btn:hover {
    background: var(--bg-secondary);
}

.preview-header {
    padding: 12px 20px 8px;
    border-bottom: 1px solid var(--mobile-border);
    background: var(--bg-primary);
    position: relative;
}

.preview-date {
    font-size: 16px;
    font-weight: 600;
    color: var(--mobile-text);
    margin-bottom: 4px;
}

.preview-count {
    font-size: 12px;
    color: var(--mobile-text-muted);
}

.preview-content {
    padding: 0 20px 20px;
}

.preview-callout {
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    border-left: 4px solid var(--mobile-border);
    background: var(--bg-primary);
}

.preview-callout.status-late {
    border-left-color: #f59e0b !important; /* Yellow/orange for late */
    background: rgba(245, 158, 11, 0.1);
}

.preview-callout.status-out {
    border-left-color: #ef4444 !important; /* Red for out */
    background: rgba(220, 38, 38, 0.1);
}

.callout-time {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
}

/* Force status colors with correct specificity - handle both cases */
.preview-callout.status-out .callout-time,
.preview-callout.status-OUT .callout-time {
    color: #ef4444 !important; /* Red for out */
}

.preview-callout.status-late .callout-time,
.preview-callout.status-LATE .callout-time {
    color: #f59e0b !important; /* Yellow/orange for late */
}

.preview-callout.status-out,
.preview-callout.status-OUT {
    border-left-color: #ef4444 !important; /* Red for out */
    background: rgba(220, 38, 38, 0.1);
}

.preview-callout.status-late,
.preview-callout.status-LATE {
    border-left-color: #f59e0b !important; /* Yellow/orange for late */
    background: rgba(245, 158, 11, 0.1);
}

.callout-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--mobile-text);
    margin-bottom: 4px;
}

.callout-description {
    font-size: 12px;
    color: var(--mobile-text-muted);
    line-height: 1.4;
}

/* Preview action buttons */
.preview-add-btn {
    background: var(--mobile-accent);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin: 16px auto;
    display: block;
    
}

.preview-add-btn:hover {
    background: var(--mobile-accent-hover);
    transform: translateY(-1px);
}

.preview-edit-btn {
    background: var(--mobile-accent);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    
}

.preview-edit-btn:hover {
    background: var(--mobile-accent-hover);
    transform: translateY(-1px);
}

.preview-delete-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    margin-left: 8px;
    
}

.preview-delete-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.preview-callout-actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.preview-no-callouts {
    text-align: center;
    padding: 20px;
}

.preview-add-section {
    margin-top: 16px;
    text-align: center;
    padding: 16px;
    border-top: 1px solid var(--mobile-border);
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    
    pointer-events: none;
}

.overlay.show {
    opacity: 1;
    pointer-events: auto;
}
