/**
 * Main Stylesheet for ANDM Labs Website
 * Contains all CSS for both public and admin pages
 */

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Mulish", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Headers use Montserrat */
h1,
h2,
h3,
h4,
h5,
h6,
.nav-brand a,
.page-header h1,
.section-header h2,
.hero h1,
.cta-section h2,
.features h2,
.footer-brand h3,
.footer-column h4 {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

/* Bold headings use heavier weight */
h1,
.hero h1,
.page-header h1 {
    font-weight: 700;
}

h2,
.section-header h2,
.cta-section h2 {
    font-weight: 600;
}

/* Paragraphs and body text use Mulish */
p,
body,
.nav-menu a,
.product-name,
.product-description,
.footer p,
.footer-column ul li a,
.btn,
input,
textarea,
select,
label {
    font-family: "Mulish", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

/* Buttons use medium weight */
.btn {
    font-weight: 500;
}

/* Labels use medium weight */
label {
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* Main content wrapper for better separation */
main {
    background-color: #ffffff;
    min-height: calc(100vh - 200px);
}

main.container {
    background-color: #ffffff;
    padding: 2rem 20px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    background: linear-gradient(135deg, #0000FF 0%, #3333FF 100%);
    color: white;
    padding: 1.25rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #9DB4CD;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: white;
    text-decoration: none;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: opacity 0.3s;
}

.nav-brand-link:hover {
    opacity: 0.9;
}

.nav-logo {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    object-fit: contain;
    background-color: transparent;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.nav-brand-text {
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #9DB4CD;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    opacity: 0.95;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #0000FF 0%, #3333FF 100%);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-menu li {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu li a {
        display: block;
        padding: 0 1.5rem;
    }

    .navbar .container {
        position: relative;
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #9DB4CD 0%, #7A95B0 100%);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(157, 180, 205, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 180, 205, 0.4);
    background: linear-gradient(135deg, #a8c0d8 0%, #8ba5c0 100%);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(157, 180, 205, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #9DB4CD 0%, #7A95B0 100%);
    box-shadow: 0 4px 15px rgba(157, 180, 205, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a8c0d8 0%, #8ba5c0 100%);
    box-shadow: 0 6px 20px rgba(157, 180, 205, 0.4);
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-success {
    background-color: #27ae60;
}

.btn-success:hover {
    background-color: #229954;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-warning {
    background-color: #f39c12;
}

.btn-warning:hover {
    background-color: #d68910;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ============================================
   FORMS
   ============================================ */

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #9DB4CD;
    box-shadow: 0 0 0 4px rgba(157, 180, 205, 0.15);
    transform: translateY(-1px);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: #9DB4CD;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.875rem;
}

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

.form-row-inline {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
}

.radio-label input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
    cursor: pointer;
    accent-color: #0000FF;
}

.radio-label span {
    cursor: pointer;
}

.contact-method-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.contact-method-badge.email {
    background-color: #e3f2fd;
    color: #1976d2;
}

.contact-method-badge.whatsapp {
    background-color: #e8f5e9;
    color: #388e3c;
}

.contact-method-badge.either {
    background-color: #fff3e0;
    color: #f57c00;
}

/* ============================================
   PRODUCTS
   ============================================ */

.page-header {
    text-align: center;
    margin: 4rem 0 3rem;
    padding: 3rem 0;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #9DB4CD 0%, #7A95B0 100%);
    border-radius: 2px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #0000FF;
    font-weight: 800;
    letter-spacing: -1px;
}

.page-header p {
    font-size: 1.2rem;
    color: #5a6c7d;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 255, 0.08), 0 8px 24px rgba(0, 0, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(157, 180, 205, 0.15);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9DB4CD 0%, #7A95B0 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(0, 0, 255, 0.12), 0 16px 48px rgba(0, 0, 255, 0.08);
    border-color: rgba(157, 180, 205, 0.3);
}

.product-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Products listing page: show full image (no crop) */
.products-page .product-image {
    height: 180px;
    object-fit: contain;
    background: #ffffff;
    /* blend with card so letterboxing space is invisible */
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-image-placeholder {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #95a5a6;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.product-image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(157, 180, 205, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.product-image-placeholder.large {
    height: 400px;
}

.product-info {
    padding: 2rem;
}

.product-name {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: #0000FF;
    line-height: 1.3;
}

.product-description {
    color: #5a6c7d;
    margin-bottom: 1.5rem;
    min-height: 3.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #27ae60;
    font-family: "Montserrat", sans-serif;
}

.product-price.large {
    font-size: 2rem;
}

.product-stock {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-stock.in-stock {
    background-color: #d5f4e6;
    color: #27ae60;
}

.product-stock.out-of-stock {
    background-color: #fadbd8;
    color: #e74c3c;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.product-actions .btn {
    flex: 1;
    text-align: center;
}

/* Product Detail Page */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 255, 0.08), 0 8px 32px rgba(0, 0, 255, 0.06);
    border: 1px solid rgba(157, 180, 205, 0.2);
}

.product-detail-image {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.product-detail-image img#mainProductImage {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 8px;
    flex: 1;
}

.product-image-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 420px;
    overflow-y: auto;
}

.product-thumbnail {
    border: 2px solid transparent;
    padding: 0;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.product-thumbnail:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-thumbnail.active {
    border-color: #0000FF;
    box-shadow: 0 0 0 2px rgba(0, 0, 255, 0.2);
}

.product-detail-info h1 {
    margin-bottom: 1rem;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.selected-products {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 255, 0.08);
    border: 1px solid rgba(157, 180, 205, 0.15);
}

.selected-products-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.selected-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.btn-remove {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.products-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 4px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 0.75rem;
    accent-color: #0000FF;
}

/* Product Dropdown Styling */
.product-dropdown-wrapper {
    margin-bottom: 2rem;
}

.product-dropdown-wrapper select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-dropdown-wrapper select:hover {
    border-color: #9DB4CD;
}

.product-dropdown-wrapper select:focus {
    outline: none;
    border-color: #0000FF;
    box-shadow: 0 0 0 4px rgba(0, 0, 255, 0.15);
}

.contact-form-section {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 255, 0.08);
    border: 1px solid rgba(157, 180, 205, 0.15);
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-buttons .btn {
    flex: 1;
}

.alternative-contact {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
    text-align: center;
}

.alternative-contact-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}

.contact-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 140px;
}

.email-link {
    color: #1976d2;
    background-color: #e3f2fd;
}

.email-link:hover {
    background-color: #bbdefb;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(25, 118, 210, 0.2);
}

.whatsapp-link {
    color: #388e3c;
    background-color: #e8f5e9;
}

.whatsapp-link:hover {
    background-color: #c8e6c9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(56, 142, 60, 0.2);
}

.link-icon {
    font-size: 2rem;
}

.link-text {
    font-size: 1rem;
}

/* ============================================
   ADMIN PAGES
   ============================================ */

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
}

.admin-header h1 {
    font-size: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 255, 0.1);
    border: 1px solid rgba(157, 180, 205, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 255, 0.15);
}

.stat-card h3 {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #0000FF;
}

.stat-number.warning {
    color: #f39c12;
}

.quick-actions {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 255, 0.08);
    border: 1px solid rgba(157, 180, 205, 0.15);
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.dashboard-section {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 255, 0.08);
    border: 1px solid rgba(157, 180, 205, 0.15);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.btn-link {
    color: #3498db;
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}

/* ============================================
   TABLES
   ============================================ */

.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 255, 0.08);
    border: 1px solid rgba(157, 180, 205, 0.15);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background: linear-gradient(135deg, #7A95B0 0%, #9DB4CD 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.data-table tr:hover {
    background-color: rgba(157, 180, 205, 0.1);
}

.table-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.no-image {
    color: #95a5a6;
    font-size: 0.875rem;
}

.description-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.actions-cell {
    white-space: nowrap;
}

.actions-cell .btn {
    margin-right: 0.5rem;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-pending {
    background-color: #fff3cd;
    color: #856404;
}

.badge-confirmed {
    background-color: #d1ecf1;
    color: #0c5460;
}

.badge-in_progress {
    background-color: #d4edda;
    color: #155724;
}

.badge-completed {
    background-color: #d4edda;
    color: #155724;
}

.badge-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.stock-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
}

.stock-badge.in-stock {
    background-color: #d5f4e6;
    color: #27ae60;
}

.stock-badge.out-of-stock {
    background-color: #fadbd8;
    color: #e74c3c;
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-section {
    border-left: 4px solid #f39c12;
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    margin: 2rem 0;
}

.login-box {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 255, 0.12);
    border: 1px solid rgba(157, 180, 205, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.login-form {
    margin-top: 2rem;
}

/* ============================================
   FORMS (ADMIN)
   ============================================ */

.form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 255, 0.08);
    border: 1px solid rgba(157, 180, 205, 0.15);
}

.admin-form {
    max-width: 800px;
}

/* Admin - Existing product images (edit form) */
.admin-image-list {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: nowrap;
    /* keep on one row */
    overflow-x: auto;
    /* scroll if too many */
    padding: 0.5rem 0.25rem;
    border-radius: 12px;
    border: 1px solid rgba(157, 180, 205, 0.2);
    background: linear-gradient(135deg, rgba(157, 180, 205, 0.08) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.admin-image-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(157, 180, 205, 0.18);
    background: #fff;
    flex: 0 0 auto;
}

.admin-image-item.is-main {
    border-color: rgba(0, 0, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(0, 0, 255, 0.12);
}

.admin-image-item.is-main .admin-image-thumb img {
    border-color: rgba(0, 0, 255, 0.45);
}

.admin-image-thumb img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    border: 1px solid rgba(157, 180, 205, 0.25);
}

.admin-image-meta {
    display: none;
    /* keep row compact; can re-enable if you want filenames visible */
}

.admin-image-item form {
    margin: 0;
}

.admin-image-item .btn.btn-sm {
    padding: 0.35rem 0.55rem;
    font-size: 0.75rem;
    border-radius: 10px;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h2 {
    margin-bottom: 1.5rem;
    color: #0000FF;
}

.order-item-row {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.stock-update-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.stock-input {
    width: 100px;
}

.reason-input {
    flex: 1;
}

/* ============================================
   FILTERS
   ============================================ */

.filters {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* ============================================
   ORDER DETAIL
   ============================================ */

.order-detail {
    background: white;
    padding: 2rem;
    border-radius: 8px;
}

.order-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.order-section:last-child {
    border-bottom: none;
}

.order-section h2 {
    margin-bottom: 1rem;
    color: #0000FF;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    font-weight: 600;
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.status-form {
    max-width: 400px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.error-page {
    text-align: center;
    padding: 3rem;
}

.error-message {
    font-size: 1.25rem;
    margin: 1rem 0;
}

.error-code {
    color: #666;
    margin: 1rem 0;
}

.error-stack {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    text-align: left;
    margin: 1rem 0;
    overflow-x: auto;
}

.low-stock-row {
    background-color: #fff3cd;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(135deg, #0000FF 0%, #3333FF 100%);
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    border-top: 3px solid #0000FF;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.footer::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.footer-brand p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-column ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.footer-bottom p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.85;
}

.footer-disclaimer {
    font-size: 0.85rem !important;
    opacity: 0.75 !important;
    font-style: italic;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #9DB4CD 0%, #7A95B0 100%);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-detail-image {
        flex-direction: column;
    }

    .product-image-thumbnails {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
    }

    .product-thumbnail img {
        width: 64px;
        height: 64px;
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .filter-form {
        flex-direction: column;
    }

    .contact-buttons {
        flex-direction: column;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    /* Hero background image (replace the file name here if you change images) */
    background:
        /* Neutral overlay to keep text readable without tinting the image blue */
        linear-gradient(135deg,
            rgba(0, 0, 0, 0.40) 0%,
            rgba(0, 0, 0, 0.52) 55%,
            rgba(0, 0, 0, 0.66) 100%),
        url("/images/hero.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 140px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(157, 180, 205, 0.20) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(157, 180, 205, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
    animation-delay: .5s;
    animation-fill-mode: both;
    opacity: 0;
    padding: 2.5rem 2.25rem;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    text-shadow: 0 2px 26px rgba(0, 0, 0, 0.55);
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background-color: white;
    color: #0000FF;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Hero-specific button polish for better contrast on images */
.hero .btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #eef3f9 100%);
    color: #0000FF;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

.hero .btn-primary:hover {
    background: linear-gradient(135deg, #ffffff 0%, #e6edf6 100%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.30);
}

.hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #0000FF;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
    padding: 100px 20px;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(157, 180, 205, 0.3), transparent);
}

.features h2 {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 4rem;
    color: #0000FF;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(157, 180, 205, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9DB4CD 0%, #7A95B0 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 255, 0.12), 0 4px 16px rgba(0, 0, 255, 0.08);
    border-color: rgba(157, 180, 205, 0.3);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(157, 180, 205, 0.3));
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0000FF;
    font-weight: 700;
}

.feature-card p {
    color: #5a6c7d;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */

.products-section {
    padding: 100px 20px;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    border-top: 1px solid rgba(157, 180, 205, 0.15);
    border-bottom: 1px solid rgba(157, 180, 205, 0.15);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.75rem;
    color: #0000FF;
    margin-bottom: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 1.15rem;
    color: #5a6c7d;
    font-weight: 400;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, #0000CC 0%, #0000FF 25%, #3333FF 50%, #4a6fa5 75%, #5a8fc7 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.7;
    font-weight: 400;
}

/* ============================================
   RESPONSIVE DESIGN - LANDING PAGE
   ============================================ */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .features h2,
    .section-header h2,
    .cta-section h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 20px;
    }

    .features {
        padding: 60px 20px;
    }

    .products-section {
        padding: 60px 20px;
    }

    .cta-section {
        padding: 60px 20px;
    }
}

/* ============================================
   LEGAL NOTICE MODAL
   ============================================ */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.age-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 10%, rgba(0, 0, 255, 0.35), transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(51, 51, 255, 0.25), transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(157, 180, 205, 0.15), transparent 70%),
        rgba(0, 0, 0, 0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.age-modal {
    width: 100%;
    max-width: 860px;
    background: linear-gradient(135deg, rgba(0, 0, 255, 0.95) 0%, rgba(51, 51, 255, 0.95) 50%, rgba(122, 149, 176, 0.92) 100%);
    color: #fff;
    border-radius: 22px;
    padding: 56px 52px 44px;
    box-shadow: 0 30px 90px rgba(0, 0, 255, 0.4), 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(157, 180, 205, 0.4);
    backdrop-filter: blur(12px);
}

.age-modal-header {
    text-align: center;
    padding-bottom: 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.age-modal-brand {
    font-family: "Montserrat", sans-serif;
    letter-spacing: 0.06em;
    font-weight: 800;
    font-size: 52px;
    line-height: 1;
    margin-bottom: 18px;
}

.age-modal-brand-primary {
    color: #ffffff;
}

.age-modal-brand-accent {
    color: #9DB4CD;
    margin-left: 10px;
    text-shadow: 0 2px 8px rgba(157, 180, 205, 0.5);
}

.age-modal-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.age-modal-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.2);
}

.age-modal-title {
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 22px 0 28px;
}

.age-modal-accent {
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.4);
}

.age-modal-disclaimer {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 24px 24px 18px;
    color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

.age-modal-disclaimer-title {
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 12px;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.age-modal-disclaimer p {
    margin-bottom: 12px;
    text-align: center;
}

.age-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 26px;
}

.age-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 18px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 18px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.age-btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #0000FF;
    box-shadow: 0 14px 40px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 255, 0.2);
    font-weight: 800;
}

.age-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 48px rgba(255, 255, 255, 0.4), 0 6px 16px rgba(0, 0, 255, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #e8e8e8 100%);
}

.age-btn-secondary {
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.age-btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.age-modal-footnote {
    margin-top: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .age-modal-overlay {
        align-items: flex-start;
        padding: 16px;
        overflow-y: auto;
    }

    .age-modal {
        padding: 28px 18px 22px;
        border-radius: 18px;
        max-height: calc(100vh - 48px);
        overflow-y: auto;
    }

    .age-modal {
        padding: 28px 18px 22px;
    }

    .age-modal-brand {
        font-size: 32px;
    }

    .age-modal-title {
        font-size: 24px;
        margin: 16px 0 18px;
    }

    .age-modal-disclaimer {
        padding: 18px 16px 14px;
    }

    .age-modal-disclaimer-title {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .age-modal-disclaimer p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .age-modal-actions {
        grid-template-columns: 1fr;
        margin-top: 18px;
    }

    .age-btn {
        padding: 12px 14px;
        font-size: 16px;
    }
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    color: #0000FF;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    text-align: center;
}

.modal-notice-text {
    margin-bottom: 2rem;
    line-height: 1.8;
    color: #444;
    font-size: 0.95rem;
}

.modal-notice-text p {
    margin-bottom: 1rem;
    text-align: justify;
}

.modal-notice-text strong {
    color: #0000FF;
    font-weight: 600;
}

.modal-button {
    width: 100%;
    text-align: center;
    font-weight: 600;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }

    .modal-notice-text {
        font-size: 0.9rem;
    }
}

/* ============================================
   LEGAL NOTICE SECTION
   ============================================ */

.legal-notice-section {
    background: linear-gradient(135deg, #deebab 0%, #d0f82f 100%);
    color: white;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding: 4rem 20px;
    margin-top: 4rem;
    position: relative;
}

.legal-notice-section h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    text-align: center;
    font-weight: 700;
}

.legal-notice-section .legal-notice-text {
    color: white;
    line-height: 1.8;
    font-size: 0.95rem;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.legal-notice-section p {
    margin-bottom: 1rem;
}

.legal-notice-section p:last-child {
    margin-bottom: 0;
}

/* ============================================
   CONTACT MESSAGES (ADMIN)
   ============================================ */

.filter-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-section .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.filter-section .btn.active {
    background: linear-gradient(135deg, #0000FF 0%, #3333FF 100%);
    color: white;
}

.messages-table-wrapper {
    background: white;
    border-radius: 16px;
    overflow-x: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 255, 0.08), 0 2px 8px rgba(0, 0, 255, 0.04);
    border: 1px solid rgba(157, 180, 205, 0.15);
}

.messages-table {
    width: 100%;
    border-collapse: collapse;
}

.messages-table thead {
    background: linear-gradient(135deg, #7A95B0 0%, #9DB4CD 100%);
    border-bottom: 2px solid rgba(157, 180, 205, 0.3);
}

.messages-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.messages-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.messages-table tbody tr:hover {
    background-color: rgba(157, 180, 205, 0.1);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.new {
    background-color: #ffd700;
    color: #333;
}

.status-badge.read {
    background-color: #90EE90;
    color: #333;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-info {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-info:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

/* Message Detail Modal */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    color: #0000FF;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 2rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.message-detail p {
    margin-bottom: 1rem;
}

.message-content {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .messages-table {
        font-size: 0.9rem;
    }

    .messages-table th,
    .messages-table td {
        padding: 0.75rem 0.5rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-sm {
        width: 100%;
    }

    .filter-section {
        flex-direction: column;
    }

    .filter-section .btn {
        width: 100%;
    }
}