@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ================= ROOT VARIABLES ================= */
:root {
    --brand-black: #000000;
    --brand-dark-gray: #111111;
    --brand-accent: #ffffff;
    --springer-blue: #003087;
}

/* ================= GLOBAL TRANSITIONS ================= */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

/* ================= HEADER ================= */
.header-gradient {
    background: linear-gradient(90deg, #000000, #111111);
    color: white;
}


/* BRAND NAME */
.brand-name {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ================= STEP INDICATOR ================= */
.step-circle {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.active-step {
    background-color: #003087;
    color: white;
    box-shadow: 0 0 0 4px rgba(0, 48, 135, 0.3);
}

/* ================= FORM CARD ================= */
.form-card {
    box-shadow:
        0 20px 25px -5px rgb(0 0 0 / 0.05),
        0 8px 10px -6px rgb(0 0 0 / 0.05);
}

/* ================= TAGS ================= */
.tag {
    animation: tagPop 0.2s ease;
}

@keyframes tagPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ================= COUNTERS ================= */
.word-counter {
    font-size: 0.75rem;
    transition: color 0.2s;
}

/* ================= FILE UPLOAD ================= */
.upload-box {
    transition: all 0.3s ease;
}

.upload-box:hover {
    border-color: #003087;
    background-color: #f8fafc;
}

.file-uploaded {
    border-color: #10b981;
    background-color: #f0fdf4;
}

/* ================= BUTTONS ================= */
.prev-btn {
    background-color: white;
    border: 2px solid #e2e8f0;
}

.prev-btn:hover {
    border-color: #64748b;
    background-color: #f8fafc;
}

/* ================= TEXTAREA (WORLD-CLASS UI) ================= */
textarea {
    width: 100%;
    min-height: 160px;
    padding: 18px 20px;
    resize: vertical;

    border: 2px solid #d1d5db;
    border-radius: 1.5rem;
    background-color: #ffffff;

    font-size: 0.95rem;
    line-height: 1.7;
    color: #111827;
    font-family: 'Inter', sans-serif;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    outline: none;

    transition: all 0.25s ease;
}

/* Placeholder */
textarea::placeholder {
    color: #94a3b8;
    font-style: italic;
}

/* Hover */
textarea:hover {
    border-color: #94a3b8;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

/* Focus */
textarea:focus {
    border-color: #003087;
    box-shadow:
        0 0 0 4px rgba(0, 48, 135, 0.12),
        0 8px 18px rgba(0, 48, 135, 0.08);
    background-color: #fcfdff;
}

/* Scrollbar */
textarea::-webkit-scrollbar {
    width: 8px;
}

textarea::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

textarea::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ================= TOAST SYSTEM ================= */
.toast {
    min-width: 280px;
    max-width: 360px;
    padding: 14px 16px;
    border-radius: 16px;

    font-size: 14px;
    font-weight: 500;

    display: flex;
    align-items: center;
    gap: 10px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);

    animation: slideIn 0.3s ease, fadeOut 0.3s ease 4.7s forwards;
}

/* Slide in */
@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Fade out */
@keyframes fadeOut {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* SUCCESS */
.toast-success {
    background: #ecfdf5;
    border-left: 5px solid #10b981;
    color: #065f46;
}

/* ERROR */
.toast-error {
    background: #fef2f2;
    border-left: 5px solid #ef4444;
    color: #991b1b;
}

/* WARNING */
.toast-warning {
    background: #fffbeb;
    border-left: 5px solid #f59e0b;
    color: #92400e;
}   

.dashboard-card{
    transition: all 0.3s ease;
}

.step-badge{
    width:50px;
    height:50px;
    border-radius:16px;
    background:#003087;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    font-weight:700;
}

.responsive-input{
    width:100%;
    padding:16px 20px;
    border:1px solid #dbe3ee;
    border-radius:18px;
    outline:none;
    font-size:15px;
    transition:all 0.3s ease;
}

.responsive-input:focus{
    border-color:#003087;
    box-shadow:0 0 0 4px rgba(0,48,135,0.08);
}

.upload-card{
    border:2px dashed #d1d9e6;
    border-radius:24px;
    padding:35px 20px;
    text-align:center;
    cursor:pointer;
    transition:all 0.3s ease;
    background:white;
    min-height:220px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.upload-card:hover{
    border-color:#003087;
    background:#f8fbff;
    transform:translateY(-4px);
    box-shadow:0 12px 30px rgba(0,0,0,0.06);
}

.upload-icon{
    font-size:42px;
    color:#003087;
    margin-bottom:15px;
}

.upload-title{
    font-size:17px;
    font-weight:700;
    color:#1e293b;
}

.upload-subtitle{
    font-size:13px;
    color:#64748b;
    margin-top:6px;
}

.file-name{
    margin-top:15px;
    font-size:14px;
    color:#10b981;
    font-weight:600;
}

.next-btn{
    background:#003087;
    color:white;
    padding:15px 30px;
    border-radius:18px;
    font-weight:600;
    transition:all 0.3s ease;
}

.next-btn:hover:not(:disabled){
    background:#002266;
}

.next-btn:disabled{
    opacity:0.5;
    cursor:not-allowed;
}

/* RESPONSIVE */
@media (max-width:768px){
    .upload-card{
        min-height:180px;
        padding:25px 15px;
    }

    .upload-icon{
        font-size:34px;
    }

    .upload-title{
        font-size:15px;
    }
}

@media (max-width:480px){
    .dashboard-card{
        padding:20px !important;
    }

    .next-btn{
        width:100%;
    }
}
