/* File: static/css/style.css */

:root {
    --purple: #6a11cb;
    --pink: #ff4b6e;
    --blue: #2575fc;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #3e3c50;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f0f2f5;
    position: relative;
}

/* Background Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
}
.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--purple);
    top: -150px;
    left: -150px;
}
.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--pink);
    bottom: -100px;
    right: -100px;
}

/* The "Glass" Card */
.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    padding: 2.5em;
    width: 100%;
}

h1, h2, h3, h4 { color: #2c3e50; font-weight: 600; }
.form-control, .accordion-item, .accordion-button, .btn-secondary {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #3e3c50;
}
.form-control::placeholder { color: #6a6a81; }
.form-control:focus {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.3);
}
.accordion-button:not(.collapsed) {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: none;
    color: #2c3e50;
}
pre {
    background: rgba(0, 0, 0, 0.6) !important;
    border-radius: 8px;
    color: #f8f9fa !important;
    white-space: pre-wrap;
    word-break: break-all;
    padding: 1em;
    font-size: 0.9em;
}
.alert-success { background-color: rgba(25, 135, 84, 0.1); border-color: rgba(25, 135, 84, 0.2); color: #198754; }
.alert-danger { background-color: rgba(220, 53, 69, 0.1); border-color: rgba(220, 53, 69, 0.2); color: #dc3545; }
.alert-warning { background-color: rgba(253, 126, 20, 0.1); border-color: rgba(253, 126, 20, 0.2); color: #fd7e14; }

.deadline-bold-black {
    color: #000 !important;
    font-weight: bold;
}

.status-valid {
    color: #198754 !important;
    font-weight: bold;
}
.status-invalid {
    color: #dc3545 !important;
    font-weight: bold;
}
.status-yes {
    color: #198754 !important;
    font-weight: bold;
}
.text-warning {
    color: #fd7e14 !important;
}
.status-no {
    color: #dc3545 !important;
    font-weight: bold;
}
.status-warning {
    color: #fd7e14 !important;
    font-weight: bold;
}

.cute-error-message {
    background: linear-gradient(90deg, #ffe0e9 0%, #fffbe0 100%) !important;
    color: #b23c5a !important;
    border: 1.5px solid #f8bbd0 !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(178, 60, 90, 0.07) !important;
    padding: 1.2em 1.5em !important; 
    margin-top: 1.5em !important;
    margin-bottom: 1.5em !important;
    display: flex;
    align-items: center !important;
    font-size: 1.1em !important;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em !important;
}

.cute-error-icon {
    font-size: 2em !important;
    margin-right: 0.7em !important;
    flex-shrink: 0 !important;
}

.cute-error-text {
    flex: 1 !important;
}

.success-animation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1em;
}

.checkmark {
    width: 72px;
    height: 72px;
    display: block;
    stroke-width: 3;
    stroke: #198754;
    stroke-miterlimit: 10;
    box-shadow: 0 0 10px #19875433;
    border-radius: 50%;
    background: #fff;
    margin-bottom: 0.5em;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke: #198754;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.4s 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

#confetti-canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

.failure-animation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1em;
}
.crossmark {
    width: 72px;
    height: 72px;
    display: block;
    stroke-width: 3;
    stroke: #dc3545;
    stroke-miterlimit: 10;
    box-shadow: 0 0 10px #dc354533;
    border-radius: 50%;
    background: #fff;
    margin-bottom: 0.5em;
}
.crossmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke: #dc3545;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.crossmark-cross {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #dc3545;
    stroke-width: 3;
    animation: stroke 0.4s 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.warningmark {
    width: 72px;
    height: 72px;
    display: block;
    stroke-width: 3;
    stroke: #fd7e14;
    stroke-miterlimit: 10;
    box-shadow: 0 0 10px #fd7e1433;
    border-radius: 50%;
    background: #fff;
    margin-bottom: 0.5em;
}
.warningmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke: #fd7e14;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.warningmark-exclamation {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #fd7e14;
    stroke-width: 3;
    animation: stroke 0.4s 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.invalid-message {
    color: #dc3545;
    font-weight: 500;
    font-size: 1.1em;
    margin-top: 0.5em;
}

.btn-theme {
    background: linear-gradient(90deg, #6a11cb 0%, #ff4b6e 100%);
    color: #fff !important;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(106, 17, 203, 0.08);
    transition: background 0.2s, box-shadow 0.2s;
}
.btn-theme:hover, .btn-theme:focus {
    background: linear-gradient(90deg, #ff4b6e 0%, #6a11cb 100%);
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(255, 75, 110, 0.12);
}

/* 1. Animated Button Effects */
.btn, .btn-secondary, .btn-theme {
    transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover, .btn-secondary:hover, .btn-theme:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 16px rgba(106, 17, 203, 0.12);
}

/* 2. Card & Section Shadows */
.card-container, .glass-card {
    box-shadow: 0 8px 32px 0 rgba(106, 17, 203, 0.10), 0 1.5px 6px 0 rgba(0,0,0,0.03);
    border-radius: 20px;
    animation: fadeIn 0.7s;
}

/* 3. Accordion Animation */
.accordion-collapse {
    transition: height 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* 4. Gradient Accent Bar */
.card-container::before, .glass-card::before {
    content: '';
    display: block;
    height: 5px;
    width: 100%;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(90deg, #6a11cb 0%, #ff4b6e 100%);
    margin-bottom: 1.2em;
}

/* 5. Subtle Fade-in Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px);}
    to { opacity: 1; transform: none;}
}

.taigha-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 0.5em;
}
.logo-container {
    margin-bottom: 1em;
}

/* Table Styling for Consistency */
.report-table {
    border-collapse: collapse;
    width: 100%;
}
.report-table th, .report-table td {
    padding: 0.75rem;
    vertical-align: top;
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.report-table th {
    background: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    text-align: left;
}
.report-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.2);
}