/* Public Portal CSS Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Sleek Harmonious Dark Theme (Primary Colors) */
    --background: 220 33% 8%;
    --foreground: 210 40% 98%;
    --card: 224 25% 12%;
    --card-foreground: 210 40% 98%;
    --border: 215 25% 22%;
    
    --primary: 263 90% 51%;      /* Premium Violet/Indigo */
    --primary-foreground: 210 40% 98%;
    
    --accent: 142 70% 45%;       /* Active Emerald Success */
    --accent-foreground: 210 40% 98%;

    --danger: 346 87% 43%;       /* Soft Crimson */
    --warning: 38 92% 50%;       /* Neon Amber */
    --info: 199 89% 48%;         /* Safe Cyan */
}

/* Base resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: var(--font-sans);
    line-height: 1.6;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: 
        radial-gradient(at 0% 0%, hsla(263, 90%, 51%, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(199, 89%, 48%, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
}

/* Glassmorphism Containers */
.glass-container {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    width: 100%;
    max-width: 800px;
    padding: 2.5rem;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-container-large {
    max-width: 1000px;
}

.glass-container-small {
    max-width: 480px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Headings */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.25rem;
    background: linear-gradient(to right, #a78bfa, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .form-group.full-width {
        grid-column: span 1;
    }
}

label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
}

input, select, textarea {
    width: 100%;
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: white;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsla(263, 90%, 51%, 0.25);
    background-color: rgba(30, 41, 59, 0.8);
}

input[type="file"] {
    background-color: transparent;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    cursor: pointer;
    text-align: center;
}

input[type="file"]:hover {
    border-color: hsl(var(--primary));
    background-color: rgba(255, 255, 255, 0.02);
}

/* Button & UI Interactions */
.btn {
    background-color: hsl(var(--primary));
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    filter: brightness(1.1);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

/* Alert notifications */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.alert-danger {
    background-color: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #fca5a5;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #a7f3d0;
}

/* 8-Stage Stepper styles */
.stepper-container {
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    width: 100%;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 20px;
    right: 20px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.step-progress-bar {
    position: absolute;
    top: 24px;
    left: 20px;
    height: 4px;
    background: linear-gradient(to right, #8b5cf6, #06b6d4);
    z-index: 2;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    width: 60px;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1e293b;
    border: 3px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.8);
}

.step-label {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    width: 120px;
    position: absolute;
    top: 55px;
    transition: all 0.3s ease;
}

/* Step States */
.step.active .step-icon {
    background-color: hsl(var(--primary));
    border-color: #a78bfa;
    color: white;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

.step.active .step-label {
    color: #a78bfa;
    font-weight: 700;
}

.step.completed .step-icon {
    background: linear-gradient(135deg, #059669, #10b981);
    border-color: #34d399;
    color: white;
}

.step.completed .step-label {
    color: #34d399;
}

/* Stepper detail block */
.stepper-description {
    background-color: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 4rem;
    text-align: center;
}

.stepper-description h3 {
    color: #a78bfa;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.stepper-description p {
    color: #94a3b8;
}

@media (max-width: 768px) {
    /* Vertical Stepper for Mobile responsiveness */
    .stepper {
        flex-direction: column;
        gap: 2.5rem;
        height: auto;
    }
    .stepper::before {
        top: 20px;
        bottom: 20px;
        left: 24px;
        width: 4px;
        height: auto;
    }
    .step-progress-bar {
        top: 20px;
        left: 24px;
        width: 4px;
        height: 0;
        transition: height 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .step {
        flex-direction: row;
        width: 100%;
        gap: 1.5rem;
    }
    .step-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
    .step-label {
        position: static;
        text-align: left;
        width: auto;
        font-size: 0.9rem;
    }
    .stepper-description {
        margin-top: 1.5rem;
    }
}

/* Data Tables inside details */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.info-table th, .info-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-table th {
    font-weight: 600;
    color: #94a3b8;
    width: 35%;
}

.info-table td {
    color: #f1f5f9;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-pending { background-color: rgba(234, 179, 8, 0.15); color: #fef08a; border: 1px solid rgba(234, 179, 8, 0.3); }
.badge-verified { background-color: rgba(16, 185, 129, 0.15); color: #a7f3d0; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-rejected { background-color: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-revision { background-color: rgba(6, 182, 212, 0.15); color: #cffafe; border: 1px solid rgba(6, 182, 212, 0.3); }

/* Copy action button */
.copy-wrapper {
    display: flex;
    background-color: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 1.5rem 0;
}

.copy-input {
    flex-grow: 1;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-family: monospace;
    font-size: 1.15rem;
    color: #38bdf8;
    letter-spacing: 0.05em;
    font-weight: 700;
    text-align: center;
}

.btn-copy {
    border-radius: 0 !important;
}

/* Footer info */
footer {
    margin-top: 3rem;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

/* Mobile Screen Responsiveness Optimizations */
@media (max-width: 640px) {
    body {
        padding: 1rem 0.5rem;
    }
    
    .glass-container {
        padding: 1.5rem 1rem;
        border-radius: 0.75rem;
    }
    
    h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    input[type="file"] {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .btn {
        width: 100%;
        padding: 0.75rem 1rem;
    }
}
