/* assets/css/style.css - Photography Client Proofing Design System */
:root {
    --bg-dark: #090d16;
    --bg-card: rgba(17, 24, 39, 0.85);
    --border-color: rgba(255, 255, 255, 0.12);
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --accent: #38bdf8;
    --success: #10b981;
    --warning: #f59e0b;
    --purple: #a855f7;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-main: 0 20px 50px rgba(0, 0, 0, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', system-ui, -apple-system, sans-serif; }

body {
    background: url('/image/bg.jpg') center/cover no-repeat fixed !important;
    background-color: #0f172a !important;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    -webkit-font-smoothing: antialiased;
    position: relative;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.45);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 540px;
    padding: 32px 18px;
    margin: auto;
}

/* BRANDING HEADER */
.brand-header {
    text-align: center;
    margin-bottom: 28px;
}
.brand-logo {
    max-width: 260px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
    margin: 0 auto 12px;
    display: block;
}
.brand-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    margin-bottom: 4px;
}
.brand-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* CARDS & FORMS */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 26px 20px;
    box-shadow: var(--shadow-main);
    margin-bottom: 24px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 16px;
    text-align: left;
}
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.form-label i { color: var(--accent); margin-right: 6px; }
.form-control {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}
.form-control:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

input[type="date"].form-control,
input[type="time"].form-control {
    color-scheme: dark;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.85;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 30px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.6);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid var(--border-color);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.18); }

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}
.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4) !important;
}
.btn-danger:disabled {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* BADGES */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.badge-received { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }
.badge-processing { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-preview { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-selection { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }
.badge-hd-proc { background: rgba(245, 158, 11, 0.25); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.5); }
.badge-completed { background: rgba(16, 185, 129, 0.3); color: #a7f3d0; border: 1px solid rgba(16, 185, 129, 0.6); }

/* WORKFLOW PROGRESS STEPS */
.workflow-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 24px 0 28px;
    padding: 0 4px;
}
.workflow-progress::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    z-index: 0;
}
.step-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.step-node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1e293b;
    border: 2px solid rgba(255,255,255,0.2);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}
.step-item.active .step-node {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 12px rgba(37,99,235,0.6);
}
.step-item.done .step-node {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}
.step-label {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
}
.step-item.active .step-label { color: #fff; }

.footer-credit {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 32px;
    opacity: 0.7;
}

/* CUSTOM MODAL SYSTEM (ALERT & CONFIRMATION) */
.ui-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(4, 9, 20, 0.82);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.ui-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ui-modal-box {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    padding: 28px 24px 24px;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.75), 0 0 30px rgba(99, 102, 241, 0.1);
    transform: scale(0.88) translateY(16px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ui-modal-overlay.active .ui-modal-box {
    transform: scale(1) translateY(0);
}

/* Modal Glow Accent Bar at top */
.ui-modal-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #3b82f6);
    border-radius: 24px 24px 0 0;
}
.ui-modal-box.type-success::before { background: linear-gradient(90deg, #10b981, #34d399); }
.ui-modal-box.type-danger::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.ui-modal-box.type-warning::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.ui-modal-box.type-info::before { background: linear-gradient(90deg, #38bdf8, #60a5fa); }

.ui-modal-icon-wrapper {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    margin: 4px auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    position: relative;
}
.ui-modal-overlay.active .ui-modal-icon-wrapper {
    animation: modalIconPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalIconPop {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.ui-modal-icon-wrapper.info {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}
.ui-modal-icon-wrapper.success {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}
.ui-modal-icon-wrapper.warning {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}
.ui-modal-icon-wrapper.danger {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.ui-modal-title {
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}
.ui-modal-message {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 24px;
    white-space: pre-wrap;
    word-break: break-word;
}

.ui-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.ui-modal-actions button {
    flex: 1;
    padding: 12px 20px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.ui-modal-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.ui-modal-actions button:active {
    transform: translateY(0);
}


