/* Predador 2.0 - SharkSeller Admin Theme */

:root {
    --sidebar-width: 260px;
    --sidebar-bg: #0f1923;
    --sidebar-hover: #1a2a3a;
    --sidebar-active: #0d6efd;
    --topbar-bg: #141e2b;
    --accent: #0d6efd;
    --accent-green: #198754;
    --accent-red: #dc3545;
    --accent-yellow: #ffc107;
}

body {
    background-color: #0d1117;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background-color: var(--sidebar-bg);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar.collapsed {
    transform: translateX(calc(-1 * var(--sidebar-width)));
}

.sidebar-header {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h5 {
    color: #fff;
    font-weight: 700;
}

.sidebar-nav {
    padding: 0.5rem 0;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    color: #8b949e;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
}

.sidebar-nav .nav-link:hover {
    background-color: var(--sidebar-hover);
    color: #fff;
}

.sidebar-nav .nav-link.active {
    background-color: rgba(13, 110, 253, 0.15);
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
}

.sidebar-nav .nav-link i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.nav-section {
    padding: 0.75rem 1rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #484f58;
}

/* Page Content */
.page-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

.page-content.expanded {
    margin-left: 0;
    width: 100%;
}

/* Top Navbar */
.top-navbar {
    background-color: var(--topbar-bg) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 0.5rem 1rem;
}

/* Cards */
.stat-card {
    background: linear-gradient(135deg, #141e2b 0%, #1a2a3a 100%);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.25rem;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Table styles */
.table-dark-custom {
    --bs-table-bg: #141e2b;
    --bs-table-border-color: rgba(255,255,255,0.05);
}

.table-dark-custom thead th {
    background-color: #0f1923;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #8b949e;
    font-weight: 600;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.table-dark-custom tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.08);
}

/* Status badges */
.badge-status-pending { background-color: #ffc107; color: #000; }
.badge-status-confirmed { background-color: #0d6efd; }
.badge-status-shipped { background-color: #6f42c1; }
.badge-status-delivered { background-color: #198754; }
.badge-status-cancelled { background-color: #dc3545; }
.badge-status-returned { background-color: #6c757d; }
.badge-status-compensated { background-color: #198754; }
.badge-status-forwarded { background-color: #0dcaf0; color: #000; }

.badge-stock-ok { background-color: #198754; }
.badge-stock-low { background-color: #ffc107; color: #000; }
.badge-stock-out { background-color: #dc3545; }

/* Forms */
.form-control, .form-select {
    background-color: #141e2b;
    border-color: rgba(255,255,255,0.1);
    color: #e6edf3;
}

.form-control:focus, .form-select:focus {
    background-color: #1a2a3a;
    border-color: var(--accent);
    color: #e6edf3;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Login Page */
.login-container {
    max-width: 420px;
    margin: 100px auto;
}

.login-card {
    background: linear-gradient(135deg, #141e2b 0%, #1a2a3a 100%);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 2.5rem;
}

.login-card h2 {
    color: #fff;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(calc(-1 * var(--sidebar-width)));
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .page-content {
        margin-left: 0;
        width: 100%;
    }
}

/* CNPJ/NFe result card */
.result-card {
    background: #141e2b;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.5rem;
}

.result-card .result-label {
    font-size: 0.75rem;
    color: #8b949e;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.result-card .result-value {
    color: #e6edf3;
    font-weight: 500;
}

/* Report cards */
.report-card {
    background: linear-gradient(135deg, #141e2b 0%, #1a2a3a 100%);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: #e6edf3;
    transition: all 0.2s;
    display: block;
}

.report-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    color: #fff;
}

.report-card i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0d1117;
}
::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}
