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

:root {
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --dark-bg: #1a1d21;
    --sidebar-bg: #ffffff;
    --main-bg: #f4f7fe;
    --text-main: #2d3748;
    --text-muted: #718096;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--main-bg);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
}

.sidebar .logo-container {
    padding: 30px 20px;
    text-align: center;
}

.sidebar .logo {
    max-height: 45px;
    transition: transform 0.3s ease;
}

.sidebar .logo:hover {
    transform: scale(1.05);
}

.sidebar a {
    color: var(--text-muted);
    padding: 12px 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 12px;
    margin: 4px 15px;
}

.sidebar a i {
    width: 24px;
    margin-right: 12px;
    font-size: 1.1rem;
}

.sidebar a:hover {
    background-color: #f0f4ff;
    color: var(--primary-color);
}

.sidebar a.active {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.sidebar-heading {
    padding: 20px 30px 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
}

/* Main Content Area */
.main {
    margin-left: 280px;
    padding: 40px;
    min-height: 100vh;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.card:not(.stat-card-static):hover {
    transform: translateY(-5px);
}

.card-title {
    font-weight: 700;
    color: var(--text-main);
}

/* Table Styles */
.table {
    border-radius: 12px;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-top: none;
    padding: 15px;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
}

/* Form Styles */
.form-control, .form-select {
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    border-color: var(--primary-color);
}

/* Stats Cards */
.stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
}

.stat-info h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Utility Styles */
.img-thumb {
    max-width: 100px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.img-perfil {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.img-assinatura {
    max-width: 150px;
    max-height: 50px;
    border-radius: 8px;
}

.status-badge {
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.status-ativo {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-inativo {
    background-color: #f8d7da;
    color: #842029;
}

.preview-imagem {
    max-width: 150px;
    max-height: 150px;
    margin-top: 10px;
    border-radius: 12px;
    display: none;
}

/* Login Page Styles */
.login-body {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../img/travel_bg.png');
    background-size: cover;
    background-position: center;
}

.login-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 420px;
}

.login-card .form-control {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.login-card .form-control:focus {
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.btn-modern {
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .main {
        margin-left: 0;
    }
}
