/* 6seven TV - Admin Panel Stylesheet */

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

:root {
    --bg-dark: #0f0f11;
    --bg-sidebar: #151518;
    --bg-panel: #1b1b20;
    --border-color: rgba(255, 255, 255, 0.05);
    --primary: #ff003c;
    --primary-hover: #e60032;
    --text-main: #e2e2e9;
    --text-muted: #888892;
    --text-white: #ffffff;
    --success: #10b981;
    --error: #ef4444;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.5;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: var(--text-white);
}

/* Auth Pages (Login) */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(255, 0, 60, 0.15), transparent 60%), #0a0a0c;
    padding: 20px;
}

.auth-card {
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.auth-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
}

.auth-header h2 span {
    color: var(--primary);
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Alert Boxes */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 12px 15px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 0, 60, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-check input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #2e2e35;
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: #383840;
    color: var(--text-white);
}

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

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

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Admin Dashboard Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 24px 30px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
}

.sidebar-header h1 span {
    color: var(--primary);
}

.sidebar-menu {
    list-style: none;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-muted);
    border-radius: 6px;
    font-weight: 500;
    transition: 0.3s;
}

.sidebar-menu-link i {
    font-size: 1.1rem;
}

.sidebar-menu-link:hover,
.sidebar-menu-link.active {
    color: var(--text-white);
    background-color: var(--bg-panel);
}

.sidebar-menu-link.active {
    color: var(--primary);
    border-left: 3px solid var(--primary);
    border-radius: 0 6px 6px 0;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

/* Main Content area */
.main-content {
    flex-grow: 1;
    margin-left: 260px;
    padding: 40px;
    min-height: 100vh;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.page-title {
    font-size: 1.8rem;
    color: var(--text-white);
    font-weight: 700;
}

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

/* Grid Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 0, 60, 0.2);
}

.stat-details h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

.stat-details p {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-top: 5px;
    line-height: 1;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 0, 60, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

/* Panel / Cards */
.admin-card {
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

.admin-card-title {
    font-size: 1.2rem;
    color: var(--text-white);
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

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

.table th, .table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.table th {
    background-color: var(--bg-panel);
    color: var(--text-white);
    font-weight: 600;
}

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

.table-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #222;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-secondary {
    background-color: #2e2e35;
    color: var(--text-muted);
}

/* Modal and Edit Forms (Simplificado) */
.inline-actions {
    display: flex;
    gap: 8px;
}

/* Modal CSS-Only ou JS */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    color: var(--text-white);
}

.modal-body {
    padding: 25px;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        width: 70px;
    }
    .sidebar-header h1 span,
    .sidebar-menu-link span,
    .sidebar-footer span {
        display: none;
    }
    .sidebar-header {
        padding: 20px;
        text-align: center;
    }
    .sidebar-menu-link {
        justify-content: center;
        padding: 12px;
    }
    .main-content {
        margin-left: 70px;
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
