/* Color Variables */
:root {
    --primary-color: #ff0055; /* Magenta/Pink */
    --secondary-color: #00e0ff; /* Cyan/Blue */
    --bg-dark: #121212;
    --card-bg: #1e1e1e;
    --text-light: #ffffff;
    --text-faded: #a0a0a0;
    --success-color: #00ff00;
    --warning-color: #ffcc00;
    --font-family: 'Poppins', sans-serif;
}

/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 50px 20px;
    overflow-x: hidden;
}

.container {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
    max-width: 700px;
    width: 100%;
    position: relative;
    animation: containerGlow 5s infinite alternate ease-in-out;
}

/* Header/Branding */
.main-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
}

.logo-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: 0 0 12px var(--primary-color);
}

.main-header h1 {
    font-size: 1.8rem;
    color: var(--text-light);
}

/* Description and Requirements */
.description-box {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 8px;
    color: var(--text-faded);
}

.requirements-list h4 {
    color: var(--primary-color);
    margin-top: 10px;
    font-weight: 600;
}

.requirements-list ul {
    list-style: none;
    padding: 0;
    margin-top: 5px;
}

.requirements-list ul li {
    font-size: 0.95rem;
    padding: 2px 0;
    font-weight: 500;
}

.requirements-list ul li i {
    color: var(--success-color);
    margin-right: 8px;
}

/* Tool Section */
.checker-tool {
    text-align: center;
    padding: 20px 0;
}

/* Upload Section Box Design */
.upload-section-box {
    background-color: #2a2a2a;
    border: 2px dashed var(--secondary-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 224, 255, 0.2);
}

.upload-section-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 25px rgba(255, 0, 85, 0.4);
    transform: translateY(-3px);
}

.upload-button-label {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(255, 0, 85, 0.4);
}

.upload-button-label:hover {
    background-color: #ff3377;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 85, 0.6);
}

.upload-button-label i {
    margin-right: 10px;
}

.file-name-display {
    display: block;
    margin-top: 15px;
    color: var(--secondary-color);
    font-style: italic;
    font-weight: 500;
}

/* Results Area */
.results-area {
    margin-top: 30px;
    text-align: left;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.results-area.hidden {
    display: none;
}

.results-area h2 {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
}

/* Status Banner */
.check-status {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 700;
}

.status-success {
    background-color: rgba(0, 255, 0, 0.2);
    color: var(--success-color);
}

.status-fail {
    background-color: rgba(255, 0, 85, 0.2);
    color: var(--primary-color);
}

.check-status i {
    margin-right: 10px;
}

/* Table Styling */
#analysisTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

#analysisTable th, #analysisTable td {
    padding: 12px;
    border: none;
    text-align: left;
}

#analysisTable th {
    background-color: var(--primary-color);
    color: var(--text-light);
    font-weight: 600;
}

#analysisTable tbody tr:nth-child(even) {
    background-color: #242424;
}
#analysisTable tbody tr:hover {
    background-color: #303030;
}

.status-icon {
    font-weight: bold;
    font-size: 1.1rem;
}

.icon-pass { color: var(--success-color); font-weight: 700; }
.icon-fail { color: var(--primary-color); font-weight: 700; }


/* --- Message Box Styling (Unified) --- */
.message-box {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.message-box i {
    margin-right: 10px;
}

/* Success Message Box (Green) */
.success-box {
    background-color: rgba(0, 255, 0, 0.15);
    border: 1px solid var(--success-color);
    color: var(--success-color);
    font-weight: 500;
}

.success-box strong {
    font-weight: 700;
}

/* Warning Message Box (Yellow - Low Quality / General Error) */
.warning-box {
    background-color: rgba(255, 204, 0, 0.15);
    border: 1px solid var(--warning-color);
    color: var(--warning-color);
    font-weight: 500;
}

/* High Quality Warning Box (Cyan/Blue - Above Standard) */
.high-quality-box {
    background-color: rgba(0, 224, 255, 0.15);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    font-weight: 500;
}

/* FIX: Icon color for High Quality Box */
.high-quality-box i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.message-box strong {
    font-weight: 700;
}

/* --- Button Styling --- */
.button-container {
    display: flex;
    gap: 15px; /* Space between buttons */
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure responsiveness */
}

.back-button, .converter-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Back to All Tools Button Styling */
.back-button {
    background-color: var(--secondary-color);
    color: var(--bg-dark);
    box-shadow: 0 4px 10px rgba(0, 224, 255, 0.4);
}

.back-button:hover {
    background-color: #00aacc;
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(0, 224, 255, 0.7);
}

/* Go to Audio Converter Button Styling (Primary Accent Color) */
.converter-button {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(255, 0, 85, 0.4);
}

.converter-button:hover {
    background-color: #ff3377;
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(255, 0, 85, 0.6);
}

.back-button i, .converter-button i {
    margin-right: 8px;
}

/* FAQ Section Styling */
.faq-section {
    margin-top: 30px;
    margin-bottom: 0px;
    padding: 20px;
    background-color: #272727;
    border-radius: 10px;
    border-left: 5px solid var(--secondary-color);
}

.faq-section h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.faq-content p {
    color: var(--text-faded);
    margin-bottom: 10px;
    font-weight: 500;
}

.faq-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.faq-content ul li {
    background: #333;
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 5px;
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.faq-content ul li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Branded Footer */
.main-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.85rem;
    color: var(--text-faded);
}

/* Keyframes for Animation */
@keyframes containerGlow {
    0% { box-shadow: 0 0 40px rgba(0, 0, 0, 0.7); }
    50% { box-shadow: 0 0 50px rgba(255, 0, 85, 0.3), 0 0 60px rgba(0, 224, 255, 0.2); }
    100% { box-shadow: 0 0 40px rgba(0, 0, 0, 0.7); }
}