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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f4f6f8;
    color: #2d3436;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Cabeçalho */
.topo {
    background: linear-gradient(135deg, #1e3a5f, #2d5a8e);
    color: white;
    padding: 30px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.topo h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.subtitulo {
    opacity: 0.9;
    font-size: 14px;
}

/* Conteúdo principal */
main {
    flex: 1;
    padding: 30px 20px;
}

.contador {
    background: white;
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #1e3a5f;
    border-left: 4px solid #f39c12;
}

.vazio {
    background: white;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    color: #7f8c8d;
}

/* Lista de sons */
.lista-sons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card-som {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s;
}

.card-som:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.info-som {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.info-som h3 {
    font-size: 16px;
    color: #1e3a5f;
    word-break: break-word;
}

.meta {
    font-size: 12px;
    color: #95a5a6;
    background: #ecf0f1;
    padding: 3px 8px;
    border-radius: 4px;
}

audio {
    width: 100%;
    margin-bottom: 12px;
    height: 40px;
}

.link-area {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.campo-link {
    flex: 1;
    min-width: 200px;
    padding: 8px 10px;
    border: 1px solid #dfe6e9;
    border-radius: 4px;
    font-size: 13px;
    background: #f8f9fa;
    color: #555;
    font-family: monospace;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s;
}

.btn-copiar {
    background: #3498db;
    color: white;
}

.btn-copiar:hover {
    background: #2980b9;
}

.btn-copiar.copiado {
    background: #27ae60;
}

.btn-baixar {
    background: #f39c12;
    color: white;
}

.btn-baixar:hover {
    background: #e67e22;
}

.btn-excluir {
    background: #e74c3c;
    color: white;
}

.btn-excluir:hover {
    background: #c0392b;
}

.btn-primario {
    background: #1e3a5f;
    color: white;
    width: 100%;
    padding: 12px;
    font-size: 15px;
}

.btn-primario:hover {
    background: #2d5a8e;
}

/* Rodapé */
.rodape {
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

.rodape a {
    color: #f39c12;
    text-decoration: none;
}

.rodape a:hover {
    text-decoration: underline;
}

/* Login */
.login-box {
    max-width: 400px;
    margin: 60px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.login-box h2 {
    margin-bottom: 20px;
    color: #1e3a5f;
    text-align: center;
}

.form-grupo {
    margin-bottom: 15px;
}

.form-grupo label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
}

.form-grupo input[type="password"],
.form-grupo input[type="text"],
.form-grupo input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #dfe6e9;
    border-radius: 4px;
    font-size: 14px;
}

.form-grupo input:focus {
    outline: none;
    border-color: #3498db;
}

.alerta {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.alerta-sucesso {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alerta-erro {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Painel admin */
.admin-topo {
    background: #1e3a5f;
    color: white;
    padding: 20px 0;
}

.admin-topo .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-topo h1 {
    font-size: 22px;
}

.btn-sair {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.btn-sair:hover {
    background: rgba(255,255,255,0.3);
}

.painel-upload {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.painel-upload h2 {
    margin-bottom: 15px;
    color: #1e3a5f;
    font-size: 18px;
}

.tabela-sons {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tabela-sons table {
    width: 100%;
    border-collapse: collapse;
}

.tabela-sons th {
    background: #34495e;
    color: white;
    padding: 12px;
    text-align: left;
    font-size: 14px;
}

.tabela-sons td {
    padding: 12px;
    border-bottom: 1px solid #ecf0f1;
    font-size: 14px;
}

.tabela-sons tr:hover {
    background: #f8f9fa;
}

.tabela-sons tr:last-child td {
    border-bottom: none;
}

.acoes-tabela {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.acoes-tabela .btn {
    padding: 6px 10px;
    font-size: 12px;
}

/* Responsivo */
@media (max-width: 600px) {
    .topo h1 { font-size: 22px; }
    .info-som { flex-direction: column; align-items: flex-start; }
    .link-area { flex-direction: column; }
    .campo-link { width: 100%; }
    .btn { justify-content: center; }
    .tabela-sons { overflow-x: auto; }
    .tabela-sons table { min-width: 500px; }
}
