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

:root {
    /* Brand Colors */
    --primary: #37c6da;
    --secondary: #7253c5;
    --tertiary: #0096ab;
    --alternate: #ff5963;

    /* Utility Colors */
    --primary-text: #101213;
    --secondary-text: #57636c;
    --primary-bg: #101213;
    --secondary-bg: #f4f6fc;

    /* Accent Colors */
    --accent-1: #616161;
    --accent-2: #757575;
    --accent-3: #e0e0e0;
    --accent-4: #eeeeee;
    --success: #04a24c;
    --error: #e21c3d;
    --warning: #fcdc0c;
    --info: #1c4494;

    /* Custom Colors */
    --primary-btn-text: #ffffff;
    --line-color: #dbe2e7;
    --bg-comp: #1d2428;
    --primary-600: #0299ff;
    --gray-icon: #2ea0ed;
    --gray-200: #dbe2e7;
    --gray-600: #262d34;
    --black-600: #090f13;
    --tertiary-600: #39d2c0;
    --overlay: rgba(255, 255, 255, 0.7);
    --text-color: #1e2429;

    /* Spacing & Borders */
    --radius-lg: 8px;
    --radius-md: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--secondary-bg);
    color: var(--primary-text);
    min-height: 100vh;
    display: flex;
}

h1,
h2,
h3,
.font-outfit {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-text);
}

/* Layout Global (Admin) */
.sidebar {
    width: 270px;
    background: white;
    /* Sidebar é branca na imagem 02 */
    border-right: 1px solid var(--line-color);
    padding: 24px 16px;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 32px;
    max-width: 1400px;
    margin: 0 auto;
    background-color: var(--secondary-bg);
}

/* Sidebar Sidebar Navigation */
.logo-container {
    padding: 0 8px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container img {
    height: 90px;
    /* Dobrado de 54px */
    margin-bottom: 0;
    object-fit: contain;
}

.logo-container span {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--primary);
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--secondary-text);
    text-decoration: none;
    border-radius: var(--radius-md);
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.nav-link i {
    margin-right: 12px;
    font-size: 1.1rem;
    color: var(--secondary-text);
}

.nav-link.active {
    background-color: #f1f4f8;
    /* Fundo sutil para ativo conforme imagem 02 */
    color: var(--primary);
}

.nav-link.active i {
    color: var(--primary);
}

.nav-link:hover:not(.active) {
    background-color: var(--secondary-bg);
    color: var(--primary-text);
}

/* User Profile in Sidebar */
.user-profile-summary {
    background: white;
    border: 1px solid var(--line-color);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--line-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--line-color);
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 1.25rem;
}

/* Welcome Card Specifics */
.welcome-card {
    background: white;
    border: 1px solid var(--line-color);
}

.welcome-card .price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--alternate);
    /* Vermelho para o valor total conforme imagem 02 */
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 16px;
    border-bottom: 1px solid var(--line-color);
    color: var(--secondary-text);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: none;
}

td {
    padding: 16px;
    border-bottom: 1px solid var(--line-color);
    font-size: 0.9rem;
    color: var(--primary-text);
}

.product-row:hover {
    background-color: #f8fafc;
}

/* Floating Labels Layout */
.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-control {
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--line-color);
    background: #f1f4f8;
    outline: none;
    font-size: 1rem;
    color: var(--primary-text);
    transition: all 0.2s ease;
}

.form-control::placeholder {
    color: transparent;
    /* Esconde o placeholder para usar o label como placeholder */
}

.form-label {
    position: absolute;
    left: 16px;
    top: 16px;
    font-size: 1rem;
    color: var(--secondary-text);
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
}

/* Efeito de flutuar ao focar ou ao ter conteúdo */
.form-control:focus~.form-label,
.form-control:not(:placeholder-shown)~.form-label {
    top: -10px;
    left: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: white;
    padding: 0 6px;
    border-radius: 4px;
}

.form-control:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 2px rgba(55, 198, 218, 0.1);
}

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

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

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

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

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

.btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

/* Auth Pages (Login) */
.auth-bg {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
}

.auth-card {
    background: white;
    width: 100%;
    max-width: 480px;
    padding: 48px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Toggle Switch Styling */
.switch {
    width: 50px;
    height: 24px;
    background: #e0e3e7;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.switch.active {
    background: var(--success);
}

.switch .handle {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: left 0.3s;
}

.switch.active .handle {
    left: 28px;
}

/* Toast Notifications */
.toast-container {
    position: fixed !important;
    top: 24px !important;
    right: 24px !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    pointer-events: none;
}

.toast {
    background: white !important;
    padding: 16px 24px !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #101213 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    min-width: 300px !important;
    border-left: 6px solid #37c6da !important;
    transform: translateX(150%) !important;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    visibility: hidden !important;
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0) !important;
    visibility: visible !important;
}

.toast-error {
    border-left-color: #e21c3d !important;
}

.toast-success {
    border-left-color: #04a24c !important;
}

.toast-warning {
    border-left-color: #fcdc0c !important;
}