
:root {
    --primary-color: #1a2332;
    --secondary-color: #2c3e50;
    --gold-color: #c9a961;
    --gold-light: #e8d7b0;
    --dark-color: #1f2937;
    --light-color: #f7f8fa;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --topbar-bg: #2c3e50;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.65;
    font-weight: 400;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    color: var(--dark-color);
    letter-spacing: -0.02em;
}

.top-bar {
    font-size: 0.8125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--topbar-bg);
    letter-spacing: 0.01em;
    position: relative;
    z-index: 1020;
    color: #ffffff !important;
}

.top-bar * {
    color: #ffffff !important;
}

.top-bar i {
    opacity: 0.9;
}

.navbar {
    padding: 1.25rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1010;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.brand-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: var(--gold-color);
    letter-spacing: -0.02em;
}

.navbar-brand img {
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.nav-link {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-secondary) !important;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem !important;
    position: relative;
    letter-spacing: -0.01em;
}

.nav-link:hover {
    color: var(--gold-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold-color);
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 50%;
}

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,122.7C1248,107,1344,85,1392,74.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-section .btn-warning {
    background: var(--gold-color);
    border-color: var(--gold-color);
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-section .btn-warning:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.hero-section .btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.quick-price-card {
    background: #fff;
    transition: all 0.3s ease;
}

.quick-price-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--gold-color) !important;
}

.price-table {
    font-size: 0.95rem;
}

.price-table thead {
    background-color: #f8f9fa;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-table tbody tr {
    transition: all 0.2s ease;
}

.price-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
}

.price-table td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

.table-responsive {
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 600px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.table-responsive::-webkit-scrollbar {
    display: none;
}

.card-body .table-responsive {
    border-radius: 0 0 8px 8px;
}

.badge {
    font-weight: 500;
    padding: 0.35rem 0.65rem;
    font-size: 0.8125rem;
    border-radius: 6px;
    letter-spacing: -0.01em;
}

.card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    background: #ffffff;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--gold-color);
}

.hover-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card-header {
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    background: #f9fafb;
}

section {
    position: relative;
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-color), var(--gold-light));
}

.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: rgba(255, 255, 255, 0.9);
}

.footer * {
    color: rgba(255, 255, 255, 0.9);
}

.footer .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

.footer .text-white {
    color: #ffffff !important;
}

.footer .text-warning {
    color: var(--gold-color) !important;
}

.footer strong {
    color: #ffffff !important;
}

.footer p {
    color: rgba(255, 255, 255, 0.85);
}

.footer small {
    color: rgba(255, 255, 255, 0.75) !important;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.2) !important;
    opacity: 1;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    color: #ffffff !important;
}

.footer-links li {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--gold-color) !important;
    padding-left: 5px;
}

.contact-info li {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9) !important;
}

.contact-info li span {
    color: rgba(255, 255, 255, 0.9) !important;
}

.contact-info i {
    color: var(--gold-color) !important;
    opacity: 1;
}

.contact-info a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.social-links .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.9) !important;
}

.social-links .btn:hover {
    background: var(--gold-color);
    border-color: var(--gold-color);
    transform: translateY(-3px);
    color: #ffffff !important;
}

.social-links .btn i {
    color: inherit !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.text-gold {
    color: var(--gold-color) !important;
}

.bg-gold {
    background-color: var(--gold-color) !important;
}

.border-gold {
    border-color: var(--gold-color) !important;
}

.admin-sidebar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    min-width: 260px;
    width: 260px;
    flex-shrink: 0;
    color: white;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.75rem 1.25rem !important;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--gold-color);
}

.admin-sidebar .nav-link::after {
    display: none;
}

.admin-header {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
}

.stat-card {
    border-left: 4px solid var(--gold-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.75rem;
}

.form-check-input:checked {
    background-color: var(--gold-color);
    border-color: var(--gold-color);
}

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

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.login-card {
    max-width: 450px;
    width: 100%;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.alert {
    border-radius: 8px;
    border: none;
}

.alert-dismissible .btn-close {
    padding: 0.75rem 1rem;
}

.btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
}

.btn-warning {
    background: var(--gold-color);
    border-color: var(--gold-color);
    color: white;
}

.btn-warning:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: #333;
}

.page-header {
    position: relative;
}

.page-header .breadcrumb {
    background: none;
    margin-bottom: 0;
    padding: 0;
}

.page-header .breadcrumb-item a {
    text-decoration: none;
}

.page-content h2, .page-content h3, .page-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.page-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.page-content ul, .page-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.feature-box {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--border-color);
}

.feature-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--gold-color);
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--gold-color);
    margin-bottom: 1rem;
}

.feature-box h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.feature-box p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 10;
}

.table thead.sticky-top th {
    background-color: #f8f9fa !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-section .card-body::-webkit-scrollbar {
    width: 8px;
}

.hero-section .card-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.hero-section .card-body::-webkit-scrollbar-thumb {
    background: #ffc107;
    border-radius: 10px;
}

.hero-section .card-body::-webkit-scrollbar-thumb:hover {
    background: #ffb300;
}

@media (max-width: 992px) {
    .navbar {
        padding: 1rem 0;
    }
    
    .navbar-brand {
        font-size: 1.35rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        text-align: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .feature-box {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 0.75rem;
        padding: 0.5rem 0;
    }
    
    .top-bar .col-md-6 {
        text-align: center !important;
        margin-bottom: 0.25rem;
    }
    
    .top-bar .col-md-6:last-child {
        margin-bottom: 0;
    }
    
    .top-bar i {
        font-size: 0.85rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-toggler {
        border: 1px solid var(--gold-color);
        padding: 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(201,169,97,0.25);
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-link {
        padding: 0.65rem 1rem !important;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link::after {
        display: none;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .feature-box {
        padding: 1.25rem;
        text-align: center;
    }
    
    .feature-box i {
        font-size: 2rem;
    }
    
    .feature-box h4 {
        font-size: 1.1rem;
    }
    
    .feature-box p {
        font-size: 0.875rem;
    }
    
    .card {
        border-radius: 8px;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.55rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    section {
        padding: 2rem 0 !important;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-links a,
    .contact-info li {
        font-size: 0.875rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
        max-height: 500px;
    }
    
    .table thead th {
        font-size: 0.8125rem;
        padding: 0.75rem 0.5rem;
    }
    
    .table tbody td {
        font-size: 0.8125rem;
        padding: 0.75rem 0.5rem;
    }
    
    .admin-sidebar {
        min-height: auto;
    }
}

@media (max-width: 576px) {
    .top-bar {
        font-size: 0.7rem;
        padding: 0.4rem 0;
    }
    
    .top-bar .row {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .top-bar small {
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-toggler {
        padding: 0.4rem;
        font-size: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.35rem;
    }
    
    h3 {
        font-size: 1.15rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .feature-box {
        padding: 1rem;
    }
    
    .feature-box i {
        font-size: 1.75rem;
    }
    
    .feature-box h4 {
        font-size: 1rem;
    }
    
    .feature-box p {
        font-size: 0.8125rem;
    }
    
    .card-header {
        padding: 0.65rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .card-body {
        padding: 0.875rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .btn {
        font-size: 0.8125rem;
        padding: 0.45rem 0.875rem;
    }
    
    section {
        padding: 1.5rem 0 !important;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-links a,
    .contact-info li {
        font-size: 0.8125rem;
    }
    
    .table-responsive {
        font-size: 0.8125rem;
        max-height: 400px;
    }
    
    .table thead th {
        font-size: 0.75rem;
        padding: 0.65rem 0.4rem;
    }
    
    .table tbody td {
        font-size: 0.75rem;
        padding: 0.65rem 0.4rem;
    }
    
    .page-header {
        padding: 2rem 0;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .page-content {
        font-size: 0.9rem;
    }
    
    .quick-price-card {
        font-size: 0.9rem;
    }
}

@media (max-width: 375px) {
    .top-bar {
        font-size: 0.65rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    h1 {
        font-size: 1.35rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    .display-5 {
        font-size: 1.35rem;
    }
    
    .feature-box {
        padding: 0.875rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
    
    .table thead th,
    .table tbody td {
        font-size: 0.7rem;
        padding: 0.5rem 0.3rem;
    }
}
