:root {
    --bg-color: #f4f4f0;
    --border-color: #000000;
    --primary-color: #ff90e8; /* Pink */
    --secondary-color: #ffc900; /* Yellow */
    --accent-color: #23a094; /* Teal */
    --text-color: #000000;
    --shadow-offset: 6px;
    --border-width: 3px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    margin-bottom: 2rem;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card {
    background-color: #ffffff;
    border: var(--border-width) solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.1s ease;
}

.highlight-card {
    background-color: var(--secondary-color);
}

.hidden {
    display: none !important;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}
.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

input, select {
    width: 100%;
    padding: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s;
}

input:focus, select:focus {
    outline: none;
    transform: translate(-1px, -1px);
    background-color: #fefefe;
}

/* Buttons */
.btn {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: var(--border-width) solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.1s;
}

.btn:active {
    transform: translate(var(--shadow-offset), var(--shadow-offset));
}

.btn-secondary {
    background-color: var(--accent-color);
    color: white;
    width: auto;
    margin-right: 1rem;
    text-decoration: none;
}

/* Loading Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Table */
.table-responsive {
    overflow-x: auto;
    margin-top: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    border: var(--border-width) solid var(--border-color);
    background-color: white;
}

th, td {
    padding: 1rem;
    border: 2px solid var(--border-color);
    text-align: left;
}

th {
    background-color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

.downloads {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .downloads {
        flex-direction: column;
    }
    .btn-secondary {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-card {
    background-color: #ffffff;
    border: var(--border-width) solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 36px;
    border: 3px solid var(--border-color);
    background-color: white;
    border-radius: 4px;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: var(--text-color);
    white-space: nowrap;
    font-size: 0.85rem;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
