/* Estilos para a área administrativa */
:root {
    --primary-color: #ff5722;
    --secondary-color: #03dac6;
    --dark-color: #1a1a1a;
    --light-color: #f4f4f4;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --gradient: linear-gradient(45deg, var(--primary-color), #9c27b0);
    --card-shadow: 0 10px 20px rgba(0,0,0,0.1);
    --hover-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Estilos gerais */
.admin-body {
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
    background-attachment: fixed;
    font-family: 'Poppins', sans-serif;
    color: #f4f4f4;
}

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

/* Header */
.admin-header {
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 10;
}

.admin-header .logo h1 {
    font-size: 1.5rem;
    margin: 0;
}

.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.admin-nav li {
    margin-left: 1.5rem;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem;
    transition: color 0.3s;
}

.admin-nav a:hover {
    color: var(--primary-color);
}

.admin-nav a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Main Content */
.admin-main {
    padding: 2rem 0;
    min-height: calc(100vh - 130px);
}

.dashboard {
    margin-top: 2rem;
}

.dashboard h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.dashboard-ca {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-col {
    display: flex;
    flex-direction: column;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.table-container {
    margin-top: 2rem;
    overflow-x: auto;
}

.table-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.table-actions .add-btn {
    background: var(--gradient);
    color: white;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.table-actions .add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.table-actions .add-btn i {
    font-size: 1.1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(30, 30, 30, 0.7);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.dashboard-card {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    position: relative;
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(255,255,255,0.2);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-card:hover::before {
    opacity: 1;
}

.dashboard-card i {
    font-size: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.dashboard-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.dashboard-card p {
    color: #ccc;
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Estatísticas */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--gradient);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

.stat-content {
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
}

/* Seções recentes */
.dashboard-recent {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.recent-section {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.recent-section h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.recent-section h3 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.recent-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-item {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.recent-item:hover {
    transform: translateY(-3px);
}

.recent-item-image {
    width: 120px;
    height: 80px;
    overflow: hidden;
}

.recent-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-item-date {
    background: var(--gradient);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 100px;
    font-weight: bold;
    position: relative;
}

.recent-item-date::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.recent-item-time {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 0.25rem;
    position: relative;
    z-index: 2;
}

.recent-item-content {
    padding: 1rem;
    flex: 1;
}

.recent-item-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.recent-item-content p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

.no-items {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
}

.video-preview-container,
.poster-preview-container,
.event-preview-container {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    background-color: rgba(0,0,0,0.3);
}

.event-preview-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #9c27b0 100%);
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.event-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.event-preview-header {
    text-align: center;
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.event-preview-date,
.event-preview-time {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.event-preview-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0.5rem 0;
    position: relative;
    z-index: 2;
}

.event-preview-location {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.event-preview-description {
    font-size: 0.9rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Botões */
.btn {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #03dac6, #6200ea);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn:hover::after {
    opacity: 1;
}

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

.btn-cancel:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: var(--error-color);
}

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

.add-btn {
    margin-bottom: 1rem;
}

/* Tabelas */
.table-container {
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow-x: auto;
    margin-top: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
}

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

.admin-table th,
.admin-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-table th {
    background-color: rgba(0,0,0,0.3);
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.admin-table tr:hover {
    background-color: rgba(255,255,255,0.05);
}

.admin-table .actions {
    display: flex;
    gap: 0.5rem;
}

.admin-table button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.admin-table .btn-edit {
    color: #007bff;
}

.admin-table .btn-delete {
    color: var(--error-color);
}

.admin-table .btn-edit:hover,
.admin-table .btn-delete:hover {
    background-color: #f1f1f1;
}

.evento-passado {
    opacity: 0.6;
}

/* Formulários */
.form-container {
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.form-container h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: rgba(0,0,0,0.2);
    color: #fff;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(3, 218, 198, 0.2);
    background-color: rgba(0,0,0,0.3);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group.half {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Alertas */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: rgba(30, 30, 30, 0.95);
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    animation: slideUp 0.3s ease;
    position: relative;
    overflow: hidden;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

.modal-content h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Login */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
    z-index: -2;
    overflow: hidden;
}

.login-background::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.15) 0%, transparent 70%);
    animation: rotate 20s infinite linear;
}

.login-background::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: radial-gradient(circle, rgba(156, 39, 176, 0.15) 0%, transparent 70%);
    animation: rotate 30s infinite linear reverse;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%);
    z-index: -1;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 0 20px;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.login-header h1 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.login-header h2 {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    font-weight: 400;
}

.login-form .form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.login-form .form-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.login-form .form-group input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
}

.login-form .form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 87, 34, 0.3);
    outline: none;
}

.login-button-container {
    margin-bottom: 0;
}

.login-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    box-sizing: border-box;
    max-width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

.login-form .form-group input:focus + label {
    color: var(--primary-color);
}

.login-btn {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    background: var(--gradient);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.login-btn:hover::before {
    transform: translateX(0);
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.back-to-site {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.back-to-site:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

/* Footer */
.admin-footer {
    background-color: #1e1e1e;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    margin-top: 2rem;
}

.admin-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Login page footer */
.login-page .admin-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
    margin-top: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .admin-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-nav {
        margin-top: 1rem;
        width: 100%;
    }
    
    .admin-nav ul {
        flex-wrap: wrap;
    }
    
    .admin-nav li {
        margin-left: 0;
        margin-right: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .admin-header-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-header-actions .btn {
        margin-top: 1rem;
    }
}

/* Cabeçalho de ações */
.admin-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-header-actions h2 {
    margin: 0;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    padding-left: 15px;
}

.admin-header-actions h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: var(--gradient);
    border-radius: 3px;
}
