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

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(
        135deg,
        #0f172a,
        #1e293b
    );
    color: white;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 30px 0;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 38px;
    margin-bottom: 10px;
}

header p {
    color: #cbd5e1;
}

.card {
    background: #1e293b;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.card h2 {
    margin-bottom: 20px;
}

button {
    background: #2563eb;
    border: none;
    color: white;
    padding: 14px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
}

button:hover {
    background: #1d4ed8;
}

button:disabled {
    background: #64748b;
    cursor: not-allowed;
}

input[type="file"] {
    display: block;
    margin-bottom: 20px;
}

#recordingStatus {
    margin-top: 15px;
    color: #38bdf8;
}

audio {
    width: 100%;
    margin-top: 15px;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.score-card {
    text-align: center;
}

.score {
    font-size: 55px;
    font-weight: bold;
    color: #38bdf8;
}

.metric {
    font-size: 30px;
    font-weight: bold;
}

.feature {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #334155;
}

.flaw {
    padding: 20px;
    margin-bottom: 15px;
    border-left: 5px solid #ef4444;
    background: #334155;
    border-radius: 8px;
}

.flaw.medium {
    border-left-color: #f59e0b;
}

.flaw.low {
    border-left-color: #22c55e;
}

.suggestion {
    padding: 18px;
    margin-bottom: 12px;
    background: #334155;
    border-radius: 8px;
    border-left: 5px solid #38bdf8;
}

#loading {
    display: none;
    margin-top: 15px;
    color: #38bdf8;
}

@media (max-width: 800px) {

    .dashboard {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 500px) {

    .dashboard {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 28px;
    }

    button {
        margin-bottom: 10px;
    }

}