:root {
    --sidebar-width: 260px;
    --sidebar-collapsed: 0px;
    --primary-green: #16a34a;
    --primary-green-dark: #15803d;
    --primary-green-light: #22c55e;
    --navbar-height: 60px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    border: none;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
}

.auth-card .card-body {
    padding: 2.5rem;
}

.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-brand h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.25rem;
}

.auth-brand p {
    color: #64748b;
    font-size: 0.9rem;
}

.form-control {
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.btn-primary {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background-color: var(--primary-green-dark);
    border-color: var(--primary-green-dark);
}

.btn-outline-secondary {
    border-radius: 8px;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
    z-index: 1040;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar-brand {
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-brand svg {
    margin-right: 0.5rem;
}

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

.sidebar-nav .nav-section {
    padding: 0.5rem 1.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.5);
    margin-top: 0.5rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 400;
    border-radius: 0;
    margin: 0.125rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar-nav .nav-link:hover {
    color: #ffffff;
    background-color: rgba(255,255,255,0.1);
}

.sidebar-nav .nav-link.active {
    color: #ffffff;
    background-color: rgba(255,255,255,0.2);
    font-weight: 500;
}

.sidebar-nav .nav-link svg {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.top-navbar {
    height: var(--navbar-height);
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content-wrapper {
    padding: 1.5rem;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1035;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar-overlay.show {
        display: block;
    }

    .main-wrapper {
        margin-left: 0;
    }
}

@media (min-width: 992px) {
    .sidebar-toggle {
        display: none;
    }
}

.stat-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
    transition: box-shadow 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.06);
}

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

.page-header h4 {
    font-weight: 600;
    color: #1e293b;
}

.page-header p {
    color: #64748b;
    font-size: 0.9rem;
}

.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
}

.table th {
    font-weight: 500;
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border-bottom-width: 1px;
}

.table td {
    font-size: 0.9rem;
    vertical-align: middle;
}

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

.btn-success-custom {
    background-color: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
}

.btn-success-custom:hover {
    background-color: #15803d;
    border-color: #15803d;
    color: #ffffff;
}

.btn-success-custom:focus {
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25);
}

.btn-cta {
    background-color: #f97316;
    border-color: #f97316;
    color: #ffffff;
}

.btn-cta:hover {
    background-color: #ea580c;
    border-color: #ea580c;
    color: #ffffff;
}

.btn-cta:focus {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
}

.btn-outline-success-custom {
    color: #16a34a;
    border-color: #16a34a;
}

.btn-outline-success-custom:hover {
    background-color: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
}

.table-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
}

.form-check-input:checked {
    background-color: #16a34a;
    border-color: #16a34a;
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
    border-color: #16a34a;
}

.pagination .page-item.active .page-link {
    background-color: #16a34a;
    border-color: #16a34a;
}

.pagination .page-link {
    color: #16a34a;
}

.pagination .page-link:hover {
    color: #15803d;
}

.tag-badge {
    font-size: 0.75rem;
    padding: 0.2em 0.5em;
    border-radius: 6px;
    font-weight: 500;
}

.product-image-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
}

.search-box {
    position: relative;
}

.search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.search-box .form-control {
    padding-left: 2.5rem;
}

.filter-select {
    min-width: 150px;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state svg {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.btn-wa-checkout {
    background-color: #f97316;
    border-color: #f97316;
    color: #ffffff;
}

.btn-wa-checkout:hover {
    background-color: #ea580c;
    border-color: #ea580c;
    color: #ffffff;
}

.btn-wa-checkout:focus {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
}

.wa-preview-bubble {
    background: #dcf8c6;
    border-radius: 12px;
    padding: 0.75rem;
    position: relative;
    max-width: 90%;
}

.wa-preview-bubble::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid #dcf8c6;
    border-bottom: 8px solid transparent;
}

.template-btn {
    transition: all 0.2s ease;
}

.template-btn:hover {
    transform: translateY(-1px);
}

.settings-section-icon {
    width: 20px;
    height: 20px;
}

.logo-upload-area {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logo-upload-area:hover {
    border-color: #16a34a;
    background-color: rgba(22, 163, 74, 0.02);
}
