:root {
    --primary-red: #e5322d;
    --secondary-gray: #f7f7f7;
    --text-dark: #1f2937;
    /* Gray 800 */
    --text-light: #6b7280;
    /* Gray 500 */
    --text-label: #374151;
    /* Gray 700 */
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-default: #d1d5db;
    /* Gray 300 */
    --success-bg: #d1fae5;
    /* Green 100 */
    --success-text: #065f46;
    /* Green 800 */
    --error-bg: #fee2e2;
    /* Red 100 */
    --error-text: #991b1b;
    /* Red 800 */
    --info-bg: #dbeafe;
    /* Blue 100 */
    --info-text: #1e40af;
    /* Blue 800 */
    --success-hover: #15803d;
    /* Green 700 */
    --download-color: #10b981;
    /* Green 600 */
}

.selected-filename {
    font-size: 0.875rem;
    /* text-sm */
    color: var(--error-text);
    /* Red 600 equivalent */
    font-weight: 600;
    /* font-semibold */
    margin-top: 0.5rem;
}

.container-tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 30px 30px 30px;
}

/* Buttons (General and specific overrides) */
.button-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: #0cab77;
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
    gap: 0.5rem;
    font-size: 15px;
}

.button-primary:hover:not(:disabled) {
    background-color: #158f67f6;
}

.button-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button-convert {
    margin-top: 1rem;
    /* mt-4 */
}

.button-download {
    background-color: var(--download-color);
    /* Green 600 */
}

.button-download:hover:not(:disabled) {
    background-color: var(--success-hover);
    /* Green 700 */
}

/* Status & Loader */
@keyframes pulse-effect {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

#loader-status {
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    padding: 1rem;
    display: none;
    /* Controlled by JS */
    animation: pulse-effect 1.5s infinite;
}

/* Output Message Box */
.output-message {
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    /* text-sm */
    border: 1px solid transparent;
    margin-top: 1rem;
}

.status-success {
    background-color: var(--success-bg);
    color: var(--success-text);
    border-color: var(--download-color);
}

.status-error {
    background-color: var(--error-bg);
    color: var(--error-text);
    border-color: #dc2626;
    /* Red 600 */
}

.message-info {
    background-color: var(--info-bg);
    color: var(--info-text);
    border-color: #3b82f6;
    /* Blue 500 */
}

.status-content {
    display: flex;
    align-items: center;
}

/* Utility Class for JS to toggle visibility */
.hidden {
    display: none !important;
}

/* Responsive adjustments for mobile view */
@media (max-width: 640px) {
    .container-tool {
        padding: 1.5rem;
    }

    .tool-title {
        font-size: 1.5rem;
    }
}