/* ✅ Upload Page Styling */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #aac7ff;
    color: #1E293B;
    text-align: center;
    align-items: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
}

/* ✅ Top Navigation Bar */
.top-bar {
    width: 100%;
    background-color: transparent;
    font-weight: bold;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Cover Buddy Logo */
.logo-img {
    height: 60px;
    border-radius: 10px;
    margin-top: 5px;
}

/* ✅ Toast Notification Styling */
.toast {
    visibility: hidden;
    min-width: 300px;
    background-color: rgba(220, 53, 69, 0.9); /* Red background */
    color: white;
    text-align: center;
    padding: 12px;
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s, bottom 0.5s ease-in-out;
}

/* ✅ Show the toast */
.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

/* ✅ Hide Animation */
.toast.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* ✅ Card Form Container */
.container {
    background-color: #d6e3ff;
    padding-top: 16px;
    padding-bottom: 16px;
    padding-right: 32px;
    padding-left: 32px;
    border-radius: 12px;
    max-width: 800px;
    width: 80%;
    height:80%;
    text-align: left;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.12);
    margin-top: 120px;
    margin-bottom: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Apply when generating starts */
.container.loading {
    animation:
    waveShadow 1s infinite linear, /* Keep shadow moving at the same speed */
    flashShadow 1.5s infinite ease-in-out; /* Slow down flashing */
}

/* Paragraph */
p {
    text-align: center;
    font-size: 16px;
    color: #475569;
    margin-bottom: 32px;
    font-weight: 600;
}

/* ✅ Labels */
label {
    font-weight: 600;
    color: #002f65;
    display: block;
    font-size:14px;
}

/* ✅ Custom File Upload */
.file-upload-label {
    background-color: #eaeeff;
    color: #374151;
    display: block;
    padding: 14px;
    text-align: center;
    border-radius: 8px;
    font-weight: 500;
    margin-top:10px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, box-shadow 0.2s ease-in-out;
}

.file-upload-label:hover {
    background-color: #CBD5E1;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

.file-upload-input {
    display: none;
}

/* ✅ Display selected file name */
span {
    display: block;
    font-size: 14px;
    color: #475569;
}

/* ✅ Input Fields */
.input-field {
    padding: 16px;
    background-color: #F1F5F9;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid #CBD5E1;
    width: 95%;
    margin-bottom: 15px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease-in-out;
    font-family: 'Montserrat', sans-serif;
}

/* Enhanced elevation and focus state */
.input-field:focus {
    border: 2px solid #1E40AF;
    background-color: #ffffff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

/* ✅ Fixed spacing for textarea */
textarea.input-field {
    height: 100px;
    resize: none;
    overflow-y: auto;
    white-space: pre-wrap;
}

/* ✅ Placeholder styling */
.input-field::placeholder {
    color: #75767a;
    font-style: italic;
}

/* ✅ Submit Button */
.submit-button {
    background-color: #004080;
    color: #d6e3ff;
    padding: 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
    margin-bottom: 20px;
}

.submit-button:hover {
    background-color: #002e5d;
    transform: translateY(-3px);
}

.submit-button:active {
    transform: scale(0.98);
}

/* ✅ Button Gradient Animation (Matches Theme) */
.submit-button.loading {
    background: linear-gradient(-45deg,
    #001849, /* Deep Dark Navy */
    #004080, /* Strong Blue */
    #0055aa, /* Bright Navy */
    #002e5d  /* Deep Ocean Blue */
    );
    background-size: 400% 400%;
    animation: wavy 3s infinite ease-in-out;
    cursor: not-allowed;
    opacity: 0.85;
}

/* ✅ Slower Wavy Animation */
@keyframes wavy {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ✅ Shadow Movement (Same Speed) */
@keyframes waveShadow {
    0% {
        box-shadow: 5px 5px 15px rgba(0, 24, 73, 0.3);
    }
    25% {
        box-shadow: -5px 8px 20px rgba(0, 24, 73, 0.5);
    }
    50% {
        box-shadow: -8px -5px 25px rgba(0, 24, 73, 0.7);
    }
    75% {
        box-shadow: 8px -8px 20px rgba(0, 24, 73, 0.5);
    }
    100% {
        box-shadow: 5px 5px 15px rgba(0, 24, 73, 0.3);
    }
}

/* ✅ Flashing Effect (Brighter & More Noticeable) */
@keyframes flashShadow {
    0% {
        box-shadow: 0px 0px 20px rgba(0, 72, 155, 0.4); /* Lighter Blue Glow */
    }
    50% {
        box-shadow: 0px 0px 40px rgba(0, 87, 154, 0.9); /* Bright Blue Glow */
    }
    100% {
        box-shadow: 0px 0px 20px rgba(0, 72, 155, 0.4); /* Back to Soft Glow */
    }
}



