/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: url("/assets/images/bg.jpg");
    background-size: cover;
    background-position: top left;
    transition: all 0.3s ease;
}

.container {
    max-width: 1400px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0;
    background: #00000022;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(50px);
}

/* Header */
header {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid #333;
}

header h1 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 10px;
}

nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}


/* Botões */
.btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #0d6efd;
    color: white;
}

.btn-primary:hover {
    background-color: #0b5ed7;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5c636a;
}

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

.btn-danger:hover {
    background-color: #c0392b;
}

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

.btn-warning:hover {
    background-color: #e67e22;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-large {
    padding: 15px 30px;
    font-size: 16px;
}

.btn.active {
    background-color: #0d6efd;
    color: white;
}

/* Formulários */
.form-container {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border: 1px solid #333;
}

.form-container h2 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #e0e0e0;
}

input[type="text"],
input[type="date"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #444;
    border-radius: 5px;
    font-size: 14px;
    background-color: #2a2a2a;
    color: #e0e0e0;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="file"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

small {
    display: block;
    margin-top: 5px;
    color: #adb5bd;
    font-size: 12px;
}

/* Upload de arquivos */
.file-upload-area {
    border: 2px dashed #444;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.3s ease;
    cursor: pointer;
    position: relative;
    background-color: #2a2a2a;
}

.file-upload-area:hover {
    border-color: #0d6efd;
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-text p {
    margin-bottom: 5px;
    color: #e0e0e0;
    font-weight: 500;
}

.file-list {
    margin-top: 10px;
}

.file-item {
    background: #2a2a2a;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #444;
}

/* Ações do formulário */
.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Alertas */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background-color: #0f2419;
    color: #75b798;
    border: 1px solid #2d5a3d;
}

.alert-error {
    background-color: #2c0b0e;
    color: #ea868f;
    border: 1px solid #842029;
}

/* Gerenciamento de relatórios */
.management-container {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border: 1px solid #333;
}

.management-container h2 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #adb5bd;
}

.empty-state h3 {
    margin-bottom: 15px;
    color: #ffffff;
}

.empty-state p {
    margin-bottom: 25px;
}

/* Tabelas */
.reports-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #444;
    color: #e0e0e0;
}

th {
    background-color: #2a2a2a;
    font-weight: 600;
    color: #ffffff;
}

tr:hover {
    background-color: #2a2a2a;
}

/* Links de compartilhamento */
.link-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.link-input {
    flex: 1;
    padding: 5px;
    border: 1px solid #444;
    border-radius: 3px;
    font-size: 12px;
    background-color: #2a2a2a;
    color: #e0e0e0;
}

/* Botões de ação */
.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

/* Seção de mídias */
.media-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #444;
}

.media-section h3, .media-section h4 {
    color: #ffffff;
    margin-bottom: 20px;
}

.media-list {
    margin-bottom: 30px;
}

.media-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 10px;
}

.media-info {
    flex: 1;
}

.media-info strong {
    display: block;
    margin-bottom: 5px;
}

.media-info small {
    margin-right: 15px;
    color: #7f8c8d;
}

.media-actions {
    display: flex;
    gap: 10px;
}

.add-media {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
}

.current-file {
    background: #e8f4fd;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        flex-direction: column;
        text-align: center;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .link-container {
        flex-direction: column;
    }
    
    .link-input {
        margin-bottom: 10px;
    }
    
    .media-item {
        flex-direction: column;
        text-align: center;
    }
    
    .media-actions {
        margin-top: 15px;
        justify-content: center;
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 8px 4px;
    }
}

@media (max-width: 480px) {
    .form-container, .management-container {
        padding: 20px;
    }
    
    .btn-small {
        padding: 8px;
        font-size: 11px;
    }
}