/* flow.css — Custom styles for Flow */

/* Prevent iOS Safari zoom on input focus */
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], input[type="date"],
input[type="time"], input[type="search"], select, textarea {
    font-size: 16px !important;
}

/* Prevent horizontal overflow on mobile */
html {
    overflow-x: hidden;
}
body {
    overflow-x: hidden;
    width: 100%;
}
/* Table scroll wrapper for mobile */
.table-wrap {
    overflow-x: auto !important;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}
.table-wrap table {
    min-width: 640px;
}

/* Mobile: stack cards vertically on small screens */
@media (max-width: 640px) {
    .grid-cols-3 { grid-template-columns: 1fr !important; }
    .sm\:grid-cols-3 { grid-template-columns: 1fr !important; }
}

/* Status indicator dot */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.status-dot.submitted    { background-color: #2563eb; } /* blue */
.status-dot.request_sent { background-color: #7c3aed; } /* violet */
.status-dot.accepted     { background-color: #0891b2; } /* cyan */
.status-dot.declined     { background-color: #dc2626; } /* red */
.status-dot.date_confirmed { background-color: #0d9488; } /* teal */
.status-dot.images_received { background-color: #d97706; } /* amber */
.status-dot.approved     { background-color: #059669; } /* emerald */
.status-dot.delivered    { background-color: #059669; } /* emerald */
.status-dot.invoiced     { background-color: #6b7280; } /* gray */
.status-dot.archived     { background-color: #9ca3af; } /* gray-light */
.status-dot.cancelled    { background-color: #dc2626; } /* red */

/* Drop zone */
.drop-zone {
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}
.drop-zone:hover,
.drop-zone.dragover {
    border-color: #c6007c;
    background-color: #fdf2f8;
}
.drop-zone.dragover {
    border-style: solid;
}

/* Photo card hover overlay */
.photo-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.375rem;
}
.photo-card img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.2s;
}
.photo-card:hover img {
    transform: scale(1.02);
}
.photo-card .photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.photo-card:hover .photo-overlay {
    opacity: 1;
}

@media (max-width: 640px) {
    .photo-card .photo-overlay { opacity: 1; background: rgba(0,0,0,0.15); }
}

/* Upload progress bar */
.upload-progress {
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}
.upload-progress-bar {
    height: 100%;
    background-color: #c6007c;
    transition: width 0.15s;
    border-radius: 2px;
}

/* Toast notification */
.toast {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    animation: toast-in 0.2s ease-out;
    max-width: 24rem;
}
.toast.success { background-color: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.toast.error   { background-color: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.toast.info    { background-color: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.toast.warning { background-color: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-0.5rem); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Print styles */
@media print {
    nav, footer, .drop-zone, .no-print,
    #toast-container, [class*="DEV"] {
        display: none !important;
    }
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    main {
        padding: 0;
        margin: 0;
    }
    .photo-card .photo-overlay {
        display: none !important;
    }
    a {
        text-decoration: none;
        color: black;
    }
}
