@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    color: #000000;
    line-height: 1.6;
}

/* Container Principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    border-bottom: 2px solid #000000;
    padding: 20px 0;
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav a i {
    font-size: 18px;
    display: flex;
    align-items: center;
}

.nav a span {
    display: flex;
    align-items: center;
}

.nav a:hover {
    opacity: 0.6;
}

.btn-logout {
    background: #000000;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-logout:hover {
    opacity: 0.8;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 400px;
    border: 2px solid #000000;
    padding: 40px;
}

.login-box h1 {
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: 700;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #000000;
    background: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000000;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Buttons */
.btn {
    background: #000000;
    color: #ffffff;
    padding: 12px 30px;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
    transition: opacity 0.3s;
    width: 100%;
}

.btn:hover {
    opacity: 0.8;
}

.btn-secondary {
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
}

.btn-secondary:hover {
    background: #000000;
    color: #ffffff;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.card {
    border: 2px solid #000000;
    padding: 30px;
    text-align: center;
}

.card h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
}

.card .number {
    font-size: 48px;
    font-weight: 700;
}

/* Table */
.table-container {
    border: 2px solid #000000;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #000000;
}

table th {
    font-weight: 600;
    background: #000000;
    color: #ffffff;
}

table tr:last-child td {
    border-bottom: none;
}

/* Messages */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #000000;
}

.message.success {
    background: #ffffff;
}

.message.error {
    background: #000000;
    color: #ffffff;
}

/* File Upload */
.file-upload {
    border: 2px dashed #000000;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s;
}

.file-upload:hover {
    background: #f5f5f5;
}

.file-upload input[type="file"] {
    display: none;
}

.file-name {
    margin-top: 10px;
    font-size: 14px;
}

/* Preview */
.preview {
    margin-top: 20px;
    border: 2px solid #000000;
    padding: 20px;
}

.preview img {
    max-width: 100%;
    height: auto;
}

.preview audio {
    width: 100%;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

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

    .login-box {
        padding: 30px 20px;
    }

    .card .number {
        font-size: 36px;
    }

    table th,
    table td {
        padding: 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }

    .login-box h1 {
        font-size: 24px;
    }

    .card {
        padding: 20px;
    }
}
