:root {
    --hamburger-menu-speed: 0.20s;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Basic styles */
a {
    color: var(--color-link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1 { font-size: 1.5rem; margin-top: 1rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.3rem; margin-top: 0.8rem; margin-bottom: 0.4rem; }
h3 { font-size: 1.1rem; margin-top: 0.6rem; margin-bottom: 0.3rem; }

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.3;
    margin: 0;
    padding: 0;
    background: var(--color-background);
    color: var(--color-text);
    background-size: auto;
    background-repeat: repeat;
    min-height: 100vh;
    padding-top: 0px;
    overflow-x: hidden;
    width: 100vw;
    display: flex;
    flex-direction: column;
    background-attachment: fixed;
    font-size: 0.85rem; /* Global scale down */
}

.container {
    max-width: 1280px;
    width: 100%;
    margin: auto;
    overflow: hidden;
}

.main-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 0.8rem;
}

.dashboard-wrapper {
    display: flex;
    gap: 30px;
}

.dashboard-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.dashboard-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.dashboard-menu-item {
    border-bottom: 1px solid #f0f0f0;
}

.dashboard-menu-item:last-child {
    border-bottom: none;
}

.dashboard-menu-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.dashboard-menu-link i {
    width: 20px;
    margin-right: 15px;
    font-size: 1rem;
    color: #888;
}

.dashboard-menu-link:hover, .dashboard-menu-link.active {
    background-color: #f8f9fa;
    color: var(--color-primary);
}

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

.dashboard-main-content {
    flex-grow: 1;
    min-width: 0;
}

.dashboard-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card-link {
    text-decoration: none;
    color: inherit;
}

.dashboard-status-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.dashboard-status-card i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.dashboard-status-card h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.dashboard-status-card p {
    margin: 5px 0 0;
    font-size: 0.8rem;
    color: #888;
}

@media (max-width: 768px) {
    .dashboard-wrapper {
        flex-direction: column;
    }
    .dashboard-sidebar {
        width: 100%;
    }
}

.container-full-width {
    max-width: none;
    width: 100%;
    padding: 0 0.8rem;
}

.admin-full-width {
    max-width: none;
    width: 100%;
    padding: 0 1%;
}

/* Header */
header {
    background: var(--color-primary);
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: top 0.5s ease-in-out;
}

header nav {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    min-height: 40px;
}

.nav-main-centered {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-grow: 1;
    justify-content: center;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-left: auto;
}

header .logo {
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--color-text);
}

header .nav-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header .nav-links ul li {
    display: inline-block;
    margin-left: 15px;
}

header .nav-links ul li a {
    text-decoration: none;
    color: var(--color-text);
    transition: color 0.3s ease;
}

header .nav-links ul li a:hover {
    color: var(--color-accent);
}

header .nav-links ul li a.active {
    color: var(--color-accent);
    font-weight: bold;
    text-decoration: underline;
}

/* Main content */
main {
    padding: 1rem 1rem;
    flex: 1;
}

.content-wrapper {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

/* Footer */
footer {
    background: var(--color-primary);
    color: var(--color-text);
    text-align: center;
    padding: 0.5rem 0;
    margin-top: 1rem;
    font-size: 0.8rem;
}

footer a {
    color: var(--color-text);
    text-decoration: none;
}

footer p {
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 10px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin: 10px;
}

/* Blog post styles */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post h1,
.blog-post h2,
.blog-post h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.blog-post p {
    margin-bottom: 1rem;
}

.blog-post blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1rem;
    margin-left: 0;
    font-style: italic;
    color: var(--color-text);
}

.article-box-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease-in-out;
}

.article-box-link:hover .article-box {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.form-select-lang {
    background-color: var(--color-background);
    border: 1px solid var(--color-primary);
    padding: 0.3rem;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    color: var(--color-text);
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.8rem;
}

.form-select-lang:hover {
    border-color: var(--color-secondary);
    box-shadow: 0 0 5px rgba(126, 188, 255, 0.5);
}

.form-select-lang:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 5px rgba(163, 213, 255, 0.7);
}

.card, .glass-card {
    background-color: var(--color-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.glass-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
}

@media (max-width: 600px) {
    .card, .glass-card {
        padding: 1.5rem 1rem;
    }
}

.about-full-width {
    max-width: none;
}

.blog-title {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
}

.article-box {
    background-color: var(--color-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

.thumbnail {
    max-width: 150px;
    height: auto;
    float: left;
    margin-right: 1.5rem;
    border-radius: 5px;
}

.back-button {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 15px;
    background-color: var(--color-accent);
    color: var(--color-text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.85rem;
}

.back-button:hover {
    background-color: var(--color-secondary);
}

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: var(--color-secondary);
    padding: 1rem;
    text-align: center;
    z-index: 1000;
    display: none;
}

.nav-back-button {
    background-color: var(--color-nav-back-button);
}

/* Carousel */
.hero-carousel {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-container {
    display: flex;
    height: 100%;
    transition: transform 1s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.carousel-nav button {
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-nav button:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.timer {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
}

.timer-svg {
    transform: rotate(-90deg);
}

.timer-circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 4;
    stroke-dasharray: 113.1;
    stroke-dashoffset: 113.1;
    transition: stroke-dashoffset 1s linear;
}

.timer-label {
    color: #d4d4d4;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Welcome Section */
.welcome-section {
    padding: 1rem;
    text-align: center;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.info-box {
    background-color: var(--color-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    flex: 1;
    max-width: 500px;
    opacity: 0;
    animation: fadeInFall 0.5s ease-out forwards;
    transition: all 0.3s ease-in-out;
}

.news-container {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    flex: initial; /* Override the flex: 1 from .info-box */
}



.box-glow:hover {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 16px var(--color-shadow-glow);
    transform: translateY(-5px);
}

/* Flash Messages */
.flashes {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.flash {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: #fff;
    opacity: 0;
    animation: fadeIn 0.5s forwards, fadeOut 0.5s 4.5s forwards;
}

.flash-success {
    background-color: var(--color-primary);
}

.flash-danger {
    background-color: var(--color-secondary);
}

.flash-info {
    background-color: var(--color-accent);
    color: var(--color-background);
}

.flash-warning {
    background-color: var(--color-accent);
    color: var(--color-background);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Responsive Menu */
.menu-toggle {
    display: none;
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 5px;
    cursor: pointer;
    padding: 4px;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(0,0,0,0.1);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--color-text) !important;
    margin: 2px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 1200px) {
    .menu-toggle {
        display: flex;
        z-index: 1001;
        position: relative;
    }

    header nav {
        padding: 0.3rem 1rem;
        gap: 0.5rem;
        flex-direction: row; /* Keep on same row */
        justify-content: space-between;
        min-height: auto;
    }

    .nav-main-centered {
        flex-direction: row;
        gap: 0.5rem;
        width: auto;
        flex-grow: 0;
        text-align: left;
    }

    .header-controls {
        position: static;
        width: auto;
        justify-content: flex-end;
        gap: 0.5rem;
        padding: 0;
        border-top: none;
        background: none;
    }

    .nav-links {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 100vh;
        background-color: var(--color-background);
        z-index: 1000;
        padding-top: 60px;
        transform: translateY(-100%); /* Slide from top */
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0.5rem 0 1.5rem 0;
    }

    .nav-links ul li {
        display: block;
        margin: 0.3rem 0;
        margin-left: 0;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    }

    .nav-links.active ul li {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 0 0.5rem;
    }
}

/* Contact Page */
.contact-section {
    background-color: var(--color-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.left-column {
    flex: 1 1 40%; /* Takes up 40% of the space, can grow/shrink */
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-details {
    /* No specific flex properties needed here */
}

.map {
    width: 100%;
    aspect-ratio: 1 / 1; /* Make it a square */
    min-height: 250px; /* Ensure it has some height if aspect-ratio isn't supported */
}

.map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px; /* Match the style of other elements */
}

.contact-form-container {
    flex: 1 1 50%; /* Takes up 50% of the space */
    min-width: 0;
}

@media (max-width: 992px) { /* Adjust breakpoint for better responsiveness */
    .contact-container {
        flex-direction: column;
    }

    .left-column,
    .contact-form-container {
        flex-basis: 100%; /* Take full width on smaller screens */
    }
}

.contact-form-container form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    box-sizing: border-box;
    font-size: 0.85rem;
}

.form-control::placeholder {
    color: #888;
    opacity: 0.6;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--color-accent);
    color: var(--color-text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

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

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

.btn-primary:hover {
    background-color: var(--color-accent) !important;
}

.btn-success {
    background-color: var(--color-flash-success) !important;
    color: var(--color-text) !important;
}

.btn-danger {
    background-color: var(--color-flash-danger) !important;
    color: var(--color-text) !important;
}

.btn-info {
    background-color: var(--color-flash-info) !important;
    color: var(--color-text) !important;
}

.btn-outline {
    background: transparent !important;
    border: 1px solid var(--color-link) !important;
    color: var(--color-link) !important;
}

.btn-outline:hover {
    background: var(--color-link) !important;
    color: white !important;
}

.btn-logout {
    background-color: var(--color-flash-danger) !important;
    color: var(--color-text) !important;
    font-weight: 700;
}

/* Keyframe Animations */
@keyframes fadeInFall {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fluid-hover {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

.fluid-hover:hover {
    animation: fluid-hover 2s ease-in-out infinite;
}

.offer-version {
    text-align: right;
    color: var(--color-text);
    opacity: 0.7;
    font-size: 0.9em;
    margin-top: 2rem;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
    font-size: 0.85rem;
}

th, td {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--color-primary);
    text-align: left;
}

th {
    background-color: var(--color-background);
}

tr:nth-of-type(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Full-width Banners */
.full-width-banners {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0;
}

.banner {
    display: block;
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    transition: background-color 0.3s ease;
}

.banner:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

.banner:hover .banner-content {
    background: rgba(0, 0, 0, 0.5);
}

.banner h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.banner p {
    margin: 0.5rem 0 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.see-more-text {
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Notification Bar */
.notification-bar-header {
    background-color: var(--color-text);
    color: var(--color-secondary);
    padding: 0.2rem 1rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1001; /* Higher than header */
    transition: transform 0.35s ease-in-out;
    font-size: 0.8rem;
}

.notification-bar-header .main-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-bar-content {
    flex-grow: 1;
}

.notification-bar-header .close-btn {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0.5rem;
    margin-left: auto;
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-bar-logo {
    height: 40px;
    width: auto;
}

@media (max-width: 600px) {
    .top-bar-logo {
        height: 32px;
    }
}

.logo-separator {
    color: var(--color-secondary);
    font-size: 1.5rem;
}

#goToTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: var(--color-nav-back-button);
  color: var(--color-text);
  cursor: pointer;
  padding: 15px;
  border-radius: 10px;
}

#goToTopBtn:hover {
  background-color: var(--color-secondary);
}

.markdown-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-word;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
}

.markdown-content table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

.hashtags {
    color: var(--color-accent);
}

.held-comment {
    border: 1px solid var(--color-secondary);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.held-comment-notice {
    color: var(--color-secondary);
    font-size: 0.9em;
}

.table-responsive-wrapper, .table-responsive {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    max-height: 80vh;
}

/* Offer Page Layout */
.offer-page-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.toc-nav {
    flex: 0 0 250px; /* Do not grow, do not shrink, base width 250px */
    position: sticky;
    top: 100px; /* Adjust based on your header's height */
    align-self: flex-start; /* Important for sticky positioning */
    background-color: var(--color-background);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.toc-nav h2 {
    margin-top: 0;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--color-primary);
    padding-bottom: 0.5rem;
}

.toc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-nav ul ul {
    padding-left: 1rem;
}

.toc-nav li {
    margin: 0.5rem 0;
}

.toc-nav a {
    text-decoration: none;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.toc-nav a:hover,
.toc-nav a.active {
    color: var(--color-accent);
}

.offer-content {
    flex: 1; /* Take up the remaining space */
}

/* Responsive styles for the offer page */
@media (max-width: 992px) {
    .toc-nav {
        display: none;
    }
}

/* Dashboard Refactoring Styles */
.dashboard-container {
    max-width: 1400px;
    margin: 1rem auto;
    padding: 0 0.5rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--color-secondary);
    flex-wrap: wrap;
    gap: 0.4rem;
}

.dashboard-title {
    margin: 0;
    color: var(--color-text);
    font-size: 1.3rem;
}

.tab-bar {
    display: flex;
    overflow-x: auto;
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
    gap: 0.3rem;
    border-bottom: 2px solid var(--color-primary, #f2f2f2);
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.tab-bar::-webkit-scrollbar {
    display: none;
}

.tab-link {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-primary, #ccc);
    border-bottom: none;
    background: white;
    cursor: pointer;
    font-weight: 700;
    color: var(--color-text, #3f3f3f);
    border-radius: 6px 6px 0 0;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: -2px; /* Pull down to overlap the bar border */
    flex-shrink: 0;
    min-width: 100px;
    text-align: center;
}

.tab-link:hover {
    background: var(--color-secondary, #ebebeb);
    opacity: 1;
}

.tab-link.active {
    background: var(--color-accent, #b3a036);
    border-color: var(--color-accent, #b3a036);
    color: white;
    opacity: 1;
    z-index: 1;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block !important;
}

.section-description {
    color: var(--color-text-muted, #666);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.card {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #eee;
}

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.shadow {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.data-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .data-layout {
        grid-template-columns: 1fr;
    }
}

.compact-address-widget {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-link, #d5bc00);
}

.compact-address-widget h4 {
    margin-top: 0;
    font-size: 1rem;
    color: var(--color-text, #3f3f3f);
}

.compact-address-widget p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--color-text, #3f3f3f);
}

.input-with-button {
    display: flex;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.address-card {
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 8px;
    position: relative;
    transition: border-color 0.2s;
    background: white;
}

.address-card.default {
    border-color: var(--color-link, #d5bc00);
    background-color: #f0f7ff;
}

.badge-default {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.7rem;
    background: var(--color-link, #d5bc00);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
}

.address-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal-content {
    margin: 10% auto;
    width: 90%;
    max-width: 500px;
    position: relative;
    background: white;
}

.close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.dashboard-section-title {
    margin-top: 0;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: var(--color-text, #3f3f3f);
    font-weight: 600;
}

.dashboard-main-content .card {
    padding: 1.5rem;
    border: none;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.dashboard-main-content .form-control {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
}

.dashboard-main-content label {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.btn-xs {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
}

.dashboard-form label {
    color: var(--color-text, #3f3f3f) !important;
    font-weight: 600 !important;
    display: block;
    margin-bottom: 0.5rem;
}

.mt-5 { margin-top: 3rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.border-top { border-top: 1px solid #dee2e6 !important; }
.link-primary { color: var(--color-link, #d5bc00); text-decoration: none; font-size: 0.9rem; }
.link-primary:hover { text-decoration: underline; }

/* Admin Breadcrumbs Styling */
.nav-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.admin-breadcrumb-nav {
    flex-grow: 1;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.breadcrumb-item {
    font-size: 0.85rem;
    color: var(--color-text-muted, #666);
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    float: left;
    padding-right: 0.5rem;
    color: var(--color-text-muted, #666);
    content: "/";
}

.breadcrumb-item a {
    color: var(--color-link);
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--color-text);
    font-weight: 600;
}

/* Extra spacing for admin container */
.admin-dashboard .dashboard-header p {
    font-size: 1.1rem;
    max-width: 800px;
}

/* Order Tracker Styling */
.order-tracker {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2rem;
    padding-top: 10px;
}

.order-tracker::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 10%;
    right: 10%;
    height: 4px;
    background-color: #e9ecef;
    z-index: 1;
}

.order-tracker .step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 20%;
}

.order-tracker .step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    border: 3px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: #adb5bd;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.order-tracker .step.active .step-icon {
    border-color: var(--color-link);
    background-color: var(--color-link);
    color: white;
    box-shadow: 0 0 15px rgba(213, 188, 0, 0.3);
}

.order-tracker .step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    padding: 0 5px;
}

.order-tracker .step.active .step-label {
    color: var(--color-text);
}

.fa-spin-slow {
    animation: fa-spin 3s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(359deg); }
}

@media (max-width: 768px) {
    .order-tracker {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
    }
    .order-tracker::before {
        left: 44px;
        top: 0;
        bottom: 0;
        width: 4px;
        height: auto;
    }
    .order-tracker .step {
        width: 100%;
        display: flex;
        align-items: center;
        margin-bottom: 20px;
        text-align: left;
    }
    .order-tracker .step-icon {
        margin: 0 20px 0 0;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Timeline Styling */
.timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-link);
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 20px;
    bottom: -10px;
    width: 2px;
    background-color: #e9ecef;
}

.border-bottom-dashed {
    border-bottom: 1px dashed #dee2e6;
}

.fw-500 { font-weight: 500; }
.last-child-border-0:last-child { border-bottom: 0 !important; }

/* Enhanced Table Styling for Order Summary */
.table-hover tbody tr:hover {
    background-color: rgba(213, 188, 0, 0.03);
}

.table thead th {
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.fs-500 { font-weight: 500; }
.italic { font-style: italic; }

/* Global Helpers */
.text-warning-emphasis { color: #664d03 !important; }
.bg-warning-emphasis { background-color: #fff3cd !important; }
.bg-opacity-10 { --bs-bg-opacity: 0.1; }

/* Timeline adjustments */
.timeline-content {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Better mobile spacing for tracker labels */
@media (max-width: 768px) {
    .order-tracker .step-label {
        font-size: 0.9rem;
    }
}

/* Common Admin UI Elements */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.bg-info { background-color: #0dcaf0 !important; }
.bg-success { background-color: #198754 !important; }
.bg-secondary { background-color: #6c757d !important; }
.bg-danger { background-color: #dc3545 !important; }
.text-dark { color: #000 !important; }

.btn-sm {
    padding: 0.15rem 0.4rem;
    font-size: 0.8rem;
    border-radius: 0.2rem;
}

.btn-xs {
    padding: 0.05rem 0.25rem;
    font-size: 0.7rem;
    line-height: 1.4;
    border-radius: 0.2rem;
}

.btn-outline-primary {
    color: var(--color-link);
    border: 1px solid var(--color-link);
    background: transparent;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: var(--color-link);
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--color-text);
    vertical-align: top;
    border-color: #dee2e6;
}

.table-hover tbody tr:hover {
    color: var(--color-text);
    background-color: rgba(0, 0, 0, 0.075);
}

.table-light {
    background-color: #f8f9fa;
}

.align-middle {
    vertical-align: middle !important;
}

.text-end {
    text-align: right !important;
}

.d-none {
    display: none !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.w-100 {
    width: 100% !important;
}

/* Custom Overlay Modal */
.custom-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.custom-overlay-content {
    background: var(--color-background, #fff);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 450px;
    width: 90%;
    border: 2px solid var(--color-accent);
    position: relative;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.custom-overlay-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-primary);
    padding-bottom: 0.5rem;
}

.custom-overlay-title {
    margin: 0;
    color: var(--color-flash-danger);
    font-size: 1.5rem;
}

.custom-overlay-footer {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}


/* Progress Bar Styles */
.progress {
    display: flex;
    height: 1rem;
    overflow: hidden;
    font-size: .75rem;
    background-color: #e9ecef;
    border-radius: .25rem;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
}

.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    background-color: var(--color-link, #0d6efd);
    transition: width .6s ease;
}

.progress-bar-striped {
    background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
    background-size: 1rem 1rem;
}

.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% { background-position-x: 1rem; }
}
