:root {
    --download-btn-link: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --process-btn: linear-gradient(135deg, var(--primary-red) 0%, #dc2626 100%);
    --preview-bg: #f8fafc;
    --heading-color: #454b51;
    --rotate-btn: #007bff;
    --download-btn: #10b981;
    --remove-btn: rgb(239, 68, 68);

    /* rarely used */
    --primary-red: #e5322d;
    --primary-red-dark: #c42a25;
    --text-dark: #383e45;
    --text-light: #878d95;
    --border-color: #e8e8f0;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --header-height: 60px;
    --navy: #1e293b;
    --cream: #f1f5f9;
    --gold: #f59e0b;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.converter-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 30px 30px 30px;
    width: 100%;
}

.uploadFile{
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.container-tool{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.selected-filename {
    font-size: 0.875rem;
    /* text-sm */
    color: var(--error-text);
    /* Red 600 equivalent */
    font-weight: 600;
    /* font-semibold */
    margin-top: 0.5rem;
}

/* --- Input File Styling --- */
input[type="file"] {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Customizing the file input button appearance */
input[type="file"]::file-selector-button {
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px; /* rounded-full */
    border: 0;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: #ffe4e6; /* rose-50 */
    color: #be185d; /* rose-700 */
    cursor: pointer;
    transition: background-color 0.2s;
}

input[type="file"]::file-selector-button:hover {
    background-color: #fecaca; /* rose-100 */
}

/* --- Button Group Styling --- */
.button-group {
    display: flex;
    gap: 1rem; /* space-x-4 */
    margin-bottom: 1rem;
}

/* --- Button Styling --- */
.button-group button {
    flex: 1; /* Make buttons grow to fill space */
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition:
        background-color 0.2s,
        box-shadow 0.2s,
        opacity 0.2s;
    border: none;
}

#pdf-to-excel-process-btn {
    background-color: #dc2626; /* red-600 */
    font-size: 1rem;
    margin-top: 20px;
    width: 200px;
}
#pdf-to-excel-process-btn:hover:not(:disabled) {
    background-color: #b91c1c; /* red-700 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

#pdf-to-excel-download-btn {
    display: none;
    flex-direction: row;
    align-items: center;
    background-color: #0cab77;
    color: white;
    padding: 20px 44px;
    font-weight: 500;
    font-size: 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, .14);
    transition: background 0.3s ease;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    gap: 10px;
}

#pdf-to-excel-download-btn h1{
    font-size: 20px;
}


#pdf-to-excel-download-btn:hover:not(:disabled) {
    background-color: #158f67f6; /* gray-600 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Note Text --- */
.note-text {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.note-text strong {
    font-weight: 600;
    color: var(--primary-color);
}

/* --- Status/Output Area Styling --- */
.status-area {
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    margin-top: 1rem;
}

.status-loader {
    text-align: center;
    color: var(--error-text);
    background-color: var(--error-bg);
    border: 1px solid #fca5a5;
}

.status-success {
    color: #065f46;
    background-color: #dcfce7;
    border: 1px solid #6ee7b7;
    display: flex;
    align-items: center;
}

.status-error {
    color: #991b1b;
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    display: flex;
    align-items: center;
}

.status-icon {
    margin-right: 0.5rem;
}

.hidden {
    display: none;
}

.back-to-upload-pdftoexcel{
     background: #454b51;
     color: white;
     color: white;
     padding: 16px;
     border: none;
     border-radius: 12px;
     font-size: 13px;
     font-weight: 600;
     cursor: pointer;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     gap: 8px;
     margin-top: 30px;
     /* width: 100%; */
}

/* --- Responsive Adjustments --- */
@media (max-width: 640px) {
    .button-group {
        flex-direction: column;
    }
    .button-group button {
        width: 100%;
    }
}


@media screen and (max-width: 735px) {
    .converter-card{
        margin-top: 20px;
    }
    #pdf-to-excel-download-btn{
        font-size: 15px;
        padding: 18px 30px;
    }
    #pdf-to-excel-download-btn h1{
        font-size: 15px;
    }
}
