:root {
    --primary-color: #FFD700; /* Forquilha Yellow */
    --secondary-color: #000000; /* Black */
    --btn-blue: #007bff; /* Requested Blue */
    --bg-light: #f4f6f9;
    --text-dark: #333;
    --sidebar-width: 250px;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

/* Sidebar */
.sidebar {
    height: 100vh;
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--secondary-color);
    padding-top: 20px;
    z-index: 1000;
    transition: all 0.3s;
}

.sidebar-header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.sidebar-header h3 {
    font-weight: bold;
    color: var(--primary-color);
}

.sidebar a {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 16px;
    color: #f1f1f1;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.sidebar a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

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

.sidebar a.active {
    background-color: var(--primary-color);
    color: black;
    font-weight: bold;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 20px;
    transition: all 0.3s;
}

/* Top Bar */
.top-bar {
    background-color: white;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.service-icon {
    font-size: 24px;
    color: var(--btn-blue);
    background: #eef5ff;
    padding: 10px;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-price {
    font-weight: bold;
    color: var(--btn-blue);
    background: #eef5ff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.service-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #666;
    flex-grow: 1;
}

.service-features li {
    margin-bottom: 5px;
}

.service-features li::before {
    content: "✓";
    color: #28a745;
    margin-right: 5px;
}

.btn-consult {
    background-color: var(--btn-blue);
    color: white;
    width: 100%;
    border-radius: 6px;
    font-weight: 500;
    padding: 10px;
    border: none;
}

.btn-consult:hover {
    background-color: #0056b3;
    color: white;
}

/* Badge */
.badge-new {
    background-color: #ff4757;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
}

.badge-free {
    background-color: #ffa502;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
}

/* Dark Mode Styles */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }
    
    .top-bar {
        background-color: #1e1e1e;
        box-shadow: 0 2px 4px rgba(255,255,255,0.05);
    }
    
    .service-card {
        background-color: #1e1e1e;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    
    .service-title {
        color: #fff;
    }
    
    .service-features {
        color: #aaa;
    }
    
    .form-control {
        background-color: #2c2c2c;
        border-color: #444;
        color: #fff;
    }
    
    .form-control:focus {
        background-color: #2c2c2c;
        color: #fff;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 0;
        overflow: hidden;
    }
    .main-content {
        margin-left: 0;
    }
    .sidebar.open {
        width: 250px;
    }
}

/* Layout wrappers */
body {
    overflow-x: hidden;
    min-height: 100vh;
}

#wrapper {
    min-height: 100vh;
    overflow: hidden;
}

/* Fixed sidebar using app layout */
#sidebar-wrapper {
    min-width: 260px;
    max-width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    transition: margin 0.25s ease-out;
}

.sidebar-brand {
    padding: 0 1.5rem;
    height: 80px;
    background-color: var(--btn-blue);
}

.sidebar-nav {
    padding-top: 0.75rem;
    padding-bottom: 2rem;
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.65) !important;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    font-weight: 500;
}

.sidebar-nav .nav-link:hover {
    color: #fff !important;
    background-color: rgba(255, 215, 0, 0.1);
}

.sidebar-nav .nav-link.active {
    background-color: #FFD700 !important;
    color: #000 !important;
    font-weight: 700;
}

.sidebar-nav .nav-link.active i {
    color: #000 !important;
}

.topbar {
    height: 80px;
    background-color: var(--btn-blue);
    border-bottom: none;
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
    width: auto;
    z-index: 1030;
}

.topbar .btn-outline-primary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.65);
}

.topbar .btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.85);
}

#page-content-wrapper {
    margin-left: 260px;
    min-height: 100vh;
    padding-top: 80px;
}

/* Dark mode refinements */
@media (prefers-color-scheme: dark) {
    .service-card {
        background-color: #1e1e1e;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
}

[data-bs-theme="dark"] .text-muted {
    color: #a0aec0 !important;
}

[data-bs-theme="dark"] .card-text {
    color: #cbd5e0 !important;
}

@media (max-width: 991.98px) {
    #sidebar-wrapper {
        margin-left: -260px;
    }
    #wrapper.toggled #sidebar-wrapper {
        margin-left: 0;
    }
    #page-content-wrapper {
        margin-left: 0;
    }
    .topbar {
        left: 0;
    }
}
