/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --marine-blue: #1e3a8a;
    --marine-blue-dark: #1e40af;
    --marine-blue-light: #3b82f6;
    --soft-purple: #8b5cf6;
    --light-blue: #60a5fa;
    --light-gray: #f8fafc;
    --border-gray: #e2e8f0;
    --text-gray: #64748b;
    --text-dark: #1e293b;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-4);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-4);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }

p {
    color: var(--text-gray);
    margin-bottom: var(--spacing-4);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-3) var(--spacing-6);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--marine-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--marine-blue-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--marine-blue);
    border: 2px solid var(--marine-blue);
}

.btn-secondary:hover {
    background-color: var(--marine-blue);
    color: var(--white);
}

/* Header */
.header {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--marine-blue) 20%, 
        var(--soft-purple) 50%, 
        var(--marine-blue) 80%, 
        transparent 100%);
    opacity: 0.6;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-5) 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.05) 0%, 
        rgba(147, 51, 234, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(30, 58, 138, 0.1);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.15);
    border-color: rgba(30, 58, 138, 0.2);
}

.logo-image {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(30, 58, 138, 0.2));
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.logo h2 {
    color: var(--marine-blue);
    margin: 0;
    font-size: var(--font-size-xl);
    font-weight: 600;
    background: linear-gradient(135deg, var(--marine-blue) 0%, var(--soft-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-6);
}

.nav {
    display: flex;
    gap: var(--spacing-2);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: var(--spacing-2);
    border-radius: var(--radius-full);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-sm);
    padding: var(--spacing-3) var(--spacing-5);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--marine-blue) 0%, var(--soft-purple) 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
}

.admin-login-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: var(--font-size-lg);
    cursor: pointer;
    padding: var(--spacing-2);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.admin-login-btn:hover {
    color: var(--marine-blue);
    background-color: var(--light-gray);
}

/* Admin button styling in footer */
.footer-admin-btn {
    margin-top: var(--spacing-3);
    font-size: var(--font-size-md);
    opacity: 0.7;
}

.footer-admin-btn:hover {
    opacity: 1;
}

/* Hero Section */
.hero {
    position: relative;
    padding: var(--spacing-20) 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.gradient-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--marine-blue), var(--soft-purple));
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -150px;
    background: linear-gradient(135deg, var(--light-blue), var(--soft-purple));
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    margin-bottom: var(--spacing-6);
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--marine-blue), var(--soft-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-gray);
    margin-bottom: var(--spacing-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* Products Section */
.products {
    padding: var(--spacing-20) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-12);
}

.section-header h2 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-4);
}

.section-header p {
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin: 0 auto;
}

/* Filters */
.filters {
    background-color: var(--light-gray);
    padding: var(--spacing-6);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-8);
    border: 1px solid var(--border-gray);
}

.search-bar {
    position: relative;
    margin-bottom: var(--spacing-4);
}

.search-bar input {
    width: 100%;
    padding: var(--spacing-3) var(--spacing-4) var(--spacing-3) var(--spacing-12);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    background-color: var(--white);
}

.search-bar i {
    position: absolute;
    left: var(--spacing-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

.filter-dropdowns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-4);
}

.filter-dropdowns select {
    padding: var(--spacing-3) var(--spacing-4);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    background-color: var(--white);
    cursor: pointer;
}

/* Admin Controls */
.admin-controls {
    display: flex;
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-8);
    justify-content: center;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-6);
    margin-bottom: var(--spacing-8);
}

.product-card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-gray);
    cursor: pointer;
    will-change: transform;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 200px;
    background-color: var(--light-gray);
    background-size: cover;
    background-position: center;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-badge {
    padding: var(--spacing-1) var(--spacing-3);
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

/* Status badge untuk product cards (dengan position absolute) */
.product-card .status-badge {
    position: absolute;
    top: var(--spacing-3);
    right: var(--spacing-3);
}

/* Meta icons dalam product content */
.product-meta .meta-icon {
    width: 16px;
    height: 16px;
    margin-right: var(--spacing-2);
    color: var(--text-gray);
    filter: brightness(0) saturate(100%) invert(60%) sepia(8%) saturate(872%) hue-rotate(169deg) brightness(99%) contrast(86%);
    flex-shrink: 0;
}

.product-meta span {
    display: flex;
    align-items: center;
    font-size: var(--font-size-sm);
    color: var(--text-gray);
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-3);
}

/* Status badge untuk popup detail (inline dengan spec-item) */
.product-detail-popup .status-badge {
    position: static;
}

/* Status badge untuk tabel all products (inline dengan cell) */
.table-container .status-badge {
    position: static;
    display: inline-block;
}

/* Skeleton Loading Styles */
.skeleton-card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-gray);
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-content {
    padding: var(--spacing-4);
}

.skeleton-title {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: var(--spacing-3);
}

.skeleton-meta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-4);
}

.skeleton-text {
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text:nth-child(1) { width: 80%; }
.skeleton-text:nth-child(2) { width: 60%; }
.skeleton-text:nth-child(3) { width: 70%; }

.skeleton-button {
    height: 32px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius-md);
    width: 100px;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes skeleton-pulse {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0.8;
    }
}

/* Lazy image loading styles */
.lazy-image {
    transition: opacity 0.3s ease;
}

.status-available {
    background-color: var(--success);
    color: var(--white);
}

.status-booked {
    background-color: var(--warning);
    color: var(--white);
}

.status-sold {
    background-color: var(--danger);
    color: var(--white);
}

.product-content {
    padding: var(--spacing-6);
}

.product-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-2);
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-4);
    font-size: var(--font-size-sm);
    color: var(--text-gray);
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: var(--spacing-1);
}

.product-actions {
    display: flex;
    gap: var(--spacing-3);
}

.admin-actions {
    display: none;
    gap: var(--spacing-2);
    margin-top: var(--spacing-3);
}

.admin-actions.show {
    display: flex;
}

.btn-sm {
    padding: var(--spacing-2) var(--spacing-3);
    font-size: var(--font-size-sm);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--spacing-2);
    margin-top: var(--spacing-8);
}

.pagination button {
    padding: var(--spacing-2) var(--spacing-4);
    border: 1px solid var(--border-gray);
    background-color: var(--white);
    color: var(--text-gray);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination button:hover {
    background-color: var(--light-gray);
}

.pagination button.active {
    background-color: var(--marine-blue);
    color: var(--white);
    border-color: var(--marine-blue);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Contact Section */
.contact {
    padding: var(--spacing-16) 0;
    background-color: var(--light-gray);
}

.contact-content {
    text-align: center;
}

.contact-content h2 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-4);
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: var(--spacing-6);
    margin-top: var(--spacing-8);
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-6);
    background-color: var(--white);
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    min-width: 120px;
}

.contact-method:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--marine-blue);
}

.contact-method i {
    font-size: var(--font-size-2xl);
    color: var(--marine-blue);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--marine-blue) 0%, var(--marine-blue-dark) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.footer::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 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.footer-divider {
    height: 6px;
    background: linear-gradient(90deg, 
        var(--marine-blue) 0%, 
        var(--soft-purple) 25%, 
        var(--light-blue) 50%, 
        var(--soft-purple) 75%, 
        var(--marine-blue) 100%
    );
    position: relative;
    overflow: hidden;
}

.footer-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-12);
    padding: var(--spacing-16) 0 var(--spacing-12) 0;
    align-items: start;
    position: relative;
    z-index: 2;
}

.footer-info h3 {
    margin-bottom: var(--spacing-2);
    font-size: var(--font-size-xl);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-6);
    padding-right: var(--spacing-8);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-4);
    padding: var(--spacing-4);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.footer-logo:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.footer-logo-image {
    height: 45px;
    width: auto;
    max-width: 140px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.footer-logo h3 {
    color: var(--white);
    margin: 0;
    font-size: var(--font-size-xl);
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-description {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--spacing-6);
    line-height: 1.7;
    font-size: var(--font-size-base);
    padding: var(--spacing-4);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--light-blue);
}

.footer-social {
    display: flex;
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-6);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: var(--white);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font-size: var(--font-size-lg);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--light-blue), var(--soft-purple));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    text-align: right;
    padding: var(--spacing-6);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.footer-contact::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--light-blue), var(--soft-purple));
}

.footer-contact h4 {
    color: var(--white);
    margin-bottom: var(--spacing-5);
    font-size: var(--font-size-xl);
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--light-blue), var(--soft-purple));
    border-radius: 1px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-4);
    color: rgba(255, 255, 255, 0.9);
    justify-content: flex-end;
    text-align: right;
    padding: var(--spacing-3);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    position: relative;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-3px);
}

.contact-item i {
    width: 24px;
    height: 24px;
    color: var(--light-blue);
    order: 2;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(96, 165, 250, 0.1);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
}

.contact-item span,
.contact-item a {
    order: 1;
    color: inherit;
    text-decoration: none;
    line-height: 1.6;
    font-size: var(--font-size-sm);
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--light-blue);
}

/* Footer Bottom Section */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-6) 0;
    background: rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-4);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
    margin: 0;
}

.footer-copyright strong {
    color: var(--white);
    font-weight: 600;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: var(--spacing-6);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color 0.3s ease;
    position: relative;
}

.footer-legal a:hover {
    color: var(--light-blue);
}

.footer-legal a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--light-blue);
    transition: width 0.3s ease;
}

.footer-legal a:hover::after {
    width: 100%;
}

.footer-admin-btn {
    margin-top: 0;
    font-size: var(--font-size-base);
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-2);
    transition: all 0.3s ease;
}

.footer-admin-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* Popups */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.popup-overlay.show {
    display: flex;
}

.popup-content {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: var(--spacing-4);
    right: var(--spacing-4);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.5);
    font-size: var(--font-size-xl);
    cursor: pointer;
    color: var(--text-gray);
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.popup-close:hover {
    background-color: #f8fafc;
    color: var(--text-dark);
    transform: scale(1.1);
}



/* Product Detail Popup */
.product-detail-popup {
    width: 90vw;
    max-width: 1200px;
    max-height: 85vh;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow-y: auto;
    margin: auto;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-10);
    padding: var(--spacing-10);
    position: relative;
}

.product-images {
    position: static;
}

.main-image {
    width: 100%;
    height: 350px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--light-gray);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-6);
}

.product-info h3 {
    color: var(--text-dark);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-2);
    background: linear-gradient(135deg, var(--marine-blue) 0%, var(--soft-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.product-specs {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 250, 252, 0.8) 100%);
    border-radius: var(--radius-xl);
    padding: var(--spacing-6);
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: var(--spacing-6);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-4) 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.2s ease;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-item:hover {
    background-color: rgba(30, 58, 138, 0.02);
    border-radius: var(--radius-md);
    padding-left: var(--spacing-3);
    padding-right: var(--spacing-3);
}

.spec-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-item span:last-child {
    font-weight: 500;
    color: var(--text-gray);
}

.videotron-specs-detail {
    margin-top: var(--spacing-4);
    padding-top: var(--spacing-4);
    border-top: 2px solid rgba(139, 92, 246, 0.2);
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.05) 0%, 
        rgba(96, 165, 250, 0.05) 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-4);
}

.product-description {
    background: linear-gradient(135deg, 
        rgba(248, 250, 252, 0.9) 0%, 
        rgba(241, 245, 249, 0.8) 100%);
    border-radius: var(--radius-xl);
    padding: var(--spacing-6);
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    margin-bottom: var(--spacing-6);
}

.product-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--marine-blue) 0%, 
        var(--soft-purple) 50%, 
        var(--light-blue) 100%);
    opacity: 0.6;
}

.product-description p {
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
    font-size: var(--font-size-base);
}

.product-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-6);
    justify-content: center;
    align-items: center;
}

.product-links .btn {
    flex: 1;
    min-width: 160px;
    max-width: 180px;
    height: 48px;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-3) var(--spacing-4);
    font-weight: 600;
    font-size: var(--font-size-sm);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: var(--font-family);
    color: var(--marine-blue);
    border: 2px solid var(--marine-blue);
    background-color: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.product-links .btn i {
    font-size: var(--font-size-base);
    margin-right: var(--spacing-2);
    flex-shrink: 0;
}

.product-links .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 ease;
}

.product-links .btn:hover {
    background-color: var(--marine-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
    border-color: var(--marine-blue);
}

.product-links .btn:hover::before {
    left: 100%;
}

.contact-buttons {
    display: flex;
    gap: var(--spacing-4);
    margin-top: var(--spacing-2);
    margin-bottom: var(--spacing-8);
}

.contact-buttons .btn {
    flex: 1;
    justify-content: center;
    padding: var(--spacing-5) var(--spacing-6);
    font-weight: 700;
    font-size: var(--font-size-lg);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-buttons .btn-primary {
    background: linear-gradient(135deg, var(--marine-blue) 0%, var(--marine-blue-dark) 100%);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.contact-buttons .btn-primary:hover {
    background: linear-gradient(135deg, var(--marine-blue-dark) 0%, var(--marine-blue) 100%);
    box-shadow: 0 12px 30px rgba(30, 58, 138, 0.4);
}

.contact-buttons .btn i {
    font-size: var(--font-size-xl);
}

/* Status Badge Enhancement */
.status-badge {
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Admin Login Popup */
.admin-login-popup {
    width: 90vw;
    max-width: 450px;
    padding: var(--spacing-8);
}

.admin-login-popup h3 {
    text-align: center;
    margin-bottom: var(--spacing-6);
    color: var(--text-dark);
}

/* Product Form Popup */
.product-form-popup {
    width: 90vw;
    max-width: 900px;
    max-height: 85vh;
    padding: var(--spacing-8);
    overflow-y: auto;
}

.product-form-popup h3 {
    margin-bottom: var(--spacing-6);
    color: var(--text-dark);
}

/* Image Upload Styles */
.form-help {
    display: block;
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-top: var(--spacing-1);
    font-style: italic;
}

.image-preview {
    position: relative;
    margin-top: var(--spacing-3);
    border: 2px dashed var(--border-gray);
    border-radius: var(--radius-lg);
    padding: var(--spacing-4);
    background-color: var(--bg-light);
    text-align: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.remove-image {
    position: absolute;
    top: var(--spacing-2);
    right: var(--spacing-2);
    background-color: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.remove-image:hover {
    background-color: #dc2626;
}

input[type="file"] {
    padding: var(--spacing-2) var(--spacing-3);
    border: 2px dashed var(--border-gray);
    border-radius: var(--radius-md);
    background-color: var(--bg-light);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

input[type="file"]:hover {
    border-color: var(--primary);
    background-color: rgba(59, 130, 246, 0.05);
}

input[type="file"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* All Products Popup */
.all-products-popup {
    width: 95vw;
    max-width: 1400px;
    height: 85vh;
    max-height: 85vh;
    padding: var(--spacing-6);
    display: flex;
    flex-direction: column;
    margin: auto;
    background-color: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    font-family: var(--font-family);
}

.all-products-popup h3 {
    margin-bottom: var(--spacing-4);
    color: var(--text-dark);
    flex-shrink: 0;
    font-size: var(--font-size-xl);
    font-weight: 600;
    font-family: var(--font-family);
}

/* Status Counters */
.status-counters {
    display: flex;
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-6);
    flex-wrap: wrap;
    flex-shrink: 0;
}

.status-counter {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-4);
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    min-width: 140px;
    flex: 1;
}

.status-counter:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.status-counter.available {
    border-left: 4px solid #10b981;
}

.status-counter.booked {
    border-left: 4px solid #f59e0b;
}

.status-counter.sold {
    border-left: 4px solid #ef4444;
}

.status-counter.total {
    border-left: 4px solid #6366f1;
}

.counter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-lg);
}

.status-counter.available .counter-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-counter.booked .counter-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-counter.sold .counter-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.status-counter.total .counter-icon {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.counter-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
}

.counter-label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.counter-value {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.table-filters {
    display: flex;
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-4);
    flex-wrap: wrap;
    flex-shrink: 0;
    font-family: var(--font-family);
}

.table-filters input,
.table-filters select {
    padding: var(--spacing-2) var(--spacing-3);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-family: var(--font-family);
    font-weight: 400;
    color: var(--text-dark);
    min-width: 120px;
}

.table-container {
    flex: 1;
    overflow: auto;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-lg);
    min-height: 0;
    background-color: var(--white);
}

.table-container table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
    background-color: var(--white);
    font-family: var(--font-family);
}

.table-container th,
.table-container td {
    padding: var(--spacing-2);
    text-align: left;
    border-bottom: 1px solid var(--border-gray);
    font-size: var(--font-size-xs);
    font-family: var(--font-family);
    font-weight: 400;
    color: var(--text-dark);
    white-space: nowrap;
    vertical-align: middle;
}

.table-container th {
    background-color: var(--light-gray);
    font-weight: 600;
    font-size: var(--font-size-xs);
    color: var(--text-dark);
    position: sticky;
    top: 0;
    cursor: pointer;
    user-select: none;
    z-index: 10;
    border-right: 1px solid var(--border-gray);
}

.table-container th:hover {
    background-color: var(--border-gray);
}

.table-container th i {
    margin-left: var(--spacing-1);
    opacity: 0.5;
}

.table-container td {
    border-right: 1px solid var(--border-light);
}

.table-container tr:hover {
    background-color: var(--light-gray);
}

.table-thumbnail {
    width: 50px;
    height: 35px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-gray);
    display: block;
    margin: 0 auto;
}

.table-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-2);
    margin-top: var(--spacing-4);
    flex-shrink: 0;
    padding: var(--spacing-3) 0;
    font-family: var(--font-family);
}

.table-pagination button {
    padding: var(--spacing-2) var(--spacing-3);
    border: 1px solid var(--border-gray);
    background-color: var(--white);
    color: var(--text-dark);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-family: var(--font-family);
    font-weight: 500;
    min-width: 40px;
    transition: all 0.2s ease;
}

.table-pagination button:hover {
    background-color: var(--light-gray);
}

.table-pagination button.active {
    background-color: var(--marine-blue);
    color: var(--white);
    border-color: var(--marine-blue);
}

.table-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.table-pagination span {
    font-size: var(--font-size-sm);
    font-family: var(--font-family);
    font-weight: 400;
    color: var(--text-gray);
    margin: 0 var(--spacing-2);
}

/* Table Input Styling */
.table-input, .table-select {
    width: 100%;
    padding: var(--spacing-1) var(--spacing-2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-family: var(--font-family);
    font-weight: 400;
    color: var(--text-dark);
    background-color: var(--white);
    transition: border-color 0.2s ease;
    pointer-events: auto;
    user-select: text;
}

.table-input:focus, .table-select:focus {
    outline: none;
    border-color: var(--marine-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.table-input {
    cursor: text;
}

.table-select {
    cursor: pointer;
}

/* Status Select Dropdown Styling */
.table-select.status-select {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 0.75rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.table-select.status-select:hover {
    border-color: #007bff;
    background-color: #fff;
}

.table-select.status-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.table-select.status-select option {
    padding: 3px 6px;
}

.table-select.status-select option[value="Available"] {
    background-color: #d4edda;
    color: #155724;
}

.table-select.status-select option[value="Booked"] {
    background-color: #fff3cd;
    color: #856404;
}

.table-select.status-select option[value="Sold"] {
    background-color: #f8d7da;
    color: #721c24;
}

/* Action Buttons in Table */
.table-container .btn {
    padding: var(--spacing-1) var(--spacing-2);
    font-size: 10px;
    font-family: var(--font-family);
    font-weight: 500;
    min-width: auto;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.table-container .btn i {
    font-size: 10px;
}

.table-container .btn-sm {
    padding: 6px 8px;
    font-size: 12px;
}

/* Modern Status Badge Design */
.status-badge {
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
    font-family: var(--font-family);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 85px;
    height: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.status-badge:hover::before {
    left: 100%;
}

.status-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Status badge untuk product cards (dengan position absolute) */
.product-card .status-badge {
    position: absolute;
    top: var(--spacing-3);
    right: var(--spacing-3);
    z-index: 10;
}

/* Status badge untuk popup detail (inline dengan spec-item) */
.product-detail-popup .status-badge {
    position: static;
    margin-left: var(--spacing-2);
}

/* Status badge untuk tabel all products (inline dengan cell) */
.table-container .status-badge {
    position: static;
    display: inline-flex;
}

/* Enhanced Status Colors with Better Contrast */
.status-available {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.status-booked {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: 2px solid rgba(245, 158, 11, 0.3);
}

.status-sold {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border: 2px solid rgba(239, 68, 68, 0.3);
}

/* Alternative Light Theme Status Badges for Tables */
.table-container .status-available {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border: 2px solid #10b981;
}

.table-container .status-booked {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 2px solid #f59e0b;
}

.table-container .status-sold {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 2px solid #ef4444;
}

/* Responsive Badge Sizing */
@media (max-width: 768px) {
    .status-badge {
        min-width: 75px;
        height: 24px;
        font-size: 10px;
        padding: var(--spacing-1) var(--spacing-3);
    }
    
    .product-card .status-badge {
        top: var(--spacing-2);
        right: var(--spacing-2);
    }
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-4);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-2);
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-3);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--marine-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-actions {
    display: flex;
    gap: var(--spacing-4);
    justify-content: flex-end;
    margin-top: var(--spacing-6);
    padding-top: var(--spacing-6);
    border-top: 1px solid var(--border-gray);
}

/* Quick Access Controls */
.quick-access-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.btn-floating {
    border-radius: 50px !important;
    padding: 12px 20px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.btn-floating:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-floating i {
    font-size: 16px;
}

.btn-floating .btn-text {
    font-weight: 600;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quick-access-controls {
        bottom: 15px;
        right: 15px;
    }
    
    .btn-floating {
        min-width: 120px;
        padding: 10px 16px !important;
    }
    
    .btn-floating .btn-text {
        font-size: 12px;
    }
}
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-3);
    }
    
    .nav-wrapper {
        flex-direction: column;
        gap: var(--spacing-4);
        padding: var(--spacing-4) 0;
    }
    
    .logo {
        order: 1;
        margin-bottom: var(--spacing-2);
    }
    
    .logo h2 {
        font-size: var(--font-size-lg);
    }
    
    .nav-container {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .nav {
        gap: var(--spacing-1);
        padding: var(--spacing-1);
        width: 100%;
        justify-content: center;
    }
    
    .nav-link {
        padding: var(--spacing-2) var(--spacing-4);
        font-size: var(--font-size-xs);
    }
    
    .hero {
        padding: var(--spacing-12) 0;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-dropdowns {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-8);
        padding: var(--spacing-12) 0 var(--spacing-8) 0;
    }
    

    
    .footer-brand {
        padding-right: 0;
        order: 1;
    }
    
    .footer-contact {
        text-align: center;
        order: 2;
    }
    
    .footer-contact::before {
        display: none;
    }
    
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
    }
    
    .contact-item i {
        order: 0;
    }
    
    .contact-item span,
    .contact-item a {
        order: 1;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-3);
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-6);
        padding: var(--spacing-6);
    }
    
    .product-detail-popup {
        width: 95vw;
        max-width: none;
        margin: var(--spacing-4);
    }
    
    .main-image {
        height: 250px;
    }
    
    .product-info h3 {
        font-size: var(--font-size-xl);
    }
    
    .product-links {
        flex-direction: column;
    }
    
    .product-links .btn {
        min-width: auto;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .contact-buttons .btn {
        font-size: var(--font-size-base);
        padding: var(--spacing-4) var(--spacing-5);
    }
    
    .spec-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-2);
    }
    
    .spec-label {
        font-size: var(--font-size-xs);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        flex-direction: column;
        align-items: center;
    }
    
    .admin-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .table-filters {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .section-header h2 {
        font-size: var(--font-size-2xl);
    }
    
    .popup-content {
        margin: var(--spacing-2);
        max-width: calc(100vw - var(--spacing-4));
        max-height: calc(100vh - var(--spacing-4));
    }
    
    .product-form-popup,
    .all-products-popup {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--spacing-2); }
.mb-4 { margin-bottom: var(--spacing-4); }
.mb-6 { margin-bottom: var(--spacing-6); }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--spacing-2); }
.mt-4 { margin-top: var(--spacing-4); }
.mt-6 { margin-top: var(--spacing-6); }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Trae Browser Compatibility Fixes */
input, textarea, select {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    pointer-events: auto !important;
    cursor: text !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--marine-blue) !important;
    outline-offset: 1px !important;
    cursor: text !important;
}

/* Force cursor visibility for Trae browser */
.table-input, .form-control, input[type="text"], input[type="password"], textarea {
    caret-color: var(--text-dark) !important;
    cursor: text !important;
    -webkit-user-select: text !important;
    user-select: text !important;
    pointer-events: auto !important;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-gray);
    border-radius: 50%;
    border-top-color: var(--marine-blue);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles */
*:focus {
    outline: 2px solid var(--marine-blue);
    outline-offset: 2px;
}

button:focus,
.btn:focus {
    outline-offset: 4px;
}

/* Marketing Contact Selection Popup */
.marketing-contact-popup {
    max-width: 800px;
    width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    padding: var(--spacing-8);
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    border: 1px solid var(--border-gray);
    margin: auto;
}

.marketing-contact-popup h3 {
    color: var(--marine-blue);
    margin-bottom: var(--spacing-6);
    text-align: center;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    position: relative;
    padding-bottom: var(--spacing-3);
}

.marketing-contact-popup h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--marine-blue), var(--soft-purple));
    border-radius: var(--radius-sm);
}

.marketing-contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-5);
    margin-bottom: var(--spacing-6);
    padding: var(--spacing-2);
}

.marketing-contact-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-xl);
    padding: var(--spacing-6);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.marketing-contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--marine-blue), var(--soft-purple));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.marketing-contact-card:hover {
    border-color: var(--marine-blue-light);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.marketing-contact-card:hover::before {
    transform: scaleX(1);
}

.marketing-contact-card.selected {
    border-color: var(--marine-blue);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.marketing-contact-card.selected::before {
    transform: scaleX(1);
}

.contact-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto var(--spacing-4);
    background: linear-gradient(135deg, var(--marine-blue), var(--marine-blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--font-size-xl);
    font-weight: 700;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.contact-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.marketing-contact-card:hover .contact-avatar::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.contact-info {
    margin-bottom: var(--spacing-4);
}

.contact-info h4 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-1);
    font-size: var(--font-size-lg);
}

.contact-info p {
    color: var(--text-gray);
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: 0;
}

.contact-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--white);
    border: none;
    padding: var(--spacing-3) var(--spacing-5);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.contact-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 ease;
}

.contact-btn:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.contact-btn:hover::before {
    left: 100%;
}

.contact-btn:active {
    transform: translateY(0);
}

.contact-btn i {
    font-size: var(--font-size-base);
}

.popup-footer {
    text-align: center;
    padding-top: var(--spacing-5);
    border-top: 1px solid var(--border-gray);
    background: var(--white);
    margin: 0 calc(-1 * var(--spacing-8));
    padding-left: var(--spacing-8);
    padding-right: var(--spacing-8);
    margin-top: var(--spacing-6);
}

.popup-footer .btn-secondary {
    background: var(--light-gray);
    color: var(--text-gray);
    border: 1px solid var(--border-gray);
    padding: var(--spacing-3) var(--spacing-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all 0.3s ease;
}

.popup-footer .btn-secondary:hover {
    background: var(--border-gray);
    color: var(--text-dark);
    transform: translateY(-1px);
}

/* Responsive Design for Marketing Contact Popup */
@media (max-width: 768px) {
    .marketing-contact-popup {
        width: 95%;
        max-height: 90vh;
        padding: var(--spacing-6);
    }
    
    .marketing-contact-popup h3 {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-5);
    }
    
    .marketing-contacts-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-4);
    }
    
    .marketing-contact-card {
        padding: var(--spacing-5);
    }
    
    .contact-avatar {
        width: 70px;
        height: 70px;
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-3);
    }
    
    .contact-info h4 {
        font-size: var(--font-size-base);
    }
    
    .contact-info p {
        font-size: var(--font-size-xs);
    }
    
    .contact-btn {
        padding: var(--spacing-2) var(--spacing-4);
        font-size: var(--font-size-xs);
    }
    
    .popup-footer {
        margin: 0 calc(-1 * var(--spacing-6));
        padding-left: var(--spacing-6);
        padding-right: var(--spacing-6);
    }
}

/* AI Description Styles */
.ai-section {
    margin: var(--spacing-3) 0;
    padding: var(--spacing-3);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ai-section.active {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.ai-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-2);
}

.btn-ai {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-ai:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-ai:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ai-icon {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.ai-status {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.ai-status.loading {
    color: #3b82f6;
}

.ai-status.success {
    color: #10b981;
}

.ai-status.error {
    color: #ef4444;
}

.ai-preview {
    margin-top: var(--spacing-3);
    padding: var(--spacing-3);
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.ai-preview h4 {
    margin: 0 0 var(--spacing-2) 0;
    color: #1e293b;
    font-size: 1.1rem;
}

.ai-description-content {
    background: #f8fafc;
    padding: var(--spacing-2);
    border-radius: 6px;
    border-left: 4px solid #3b82f6;
    margin-bottom: var(--spacing-2);
    line-height: 1.6;
    color: #334155;
}

.ai-actions {
    display: flex;
    gap: var(--spacing-2);
    justify-content: flex-end;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
}

/* Batch AI Generation Button */
.batch-ai-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.batch-ai-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Log Notification Styles */
.log-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border-left: 4px solid #007bff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    max-width: 400px;
    z-index: 10000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.log-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.log-notification-info {
    border-left-color: #007bff;
}

.log-notification-warning {
    border-left-color: #ffc107;
    background: #fff8e1;
}

.log-notification-error {
    border-left-color: #dc3545;
    background: #ffebee;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-content i {
    font-size: 18px;
    color: #007bff;
}

.log-notification-warning .notification-content i {
    color: #ffc107;
}

.log-notification-error .notification-content i {
    color: #dc3545;
}

.notification-content span {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: #f0f0f0;
    color: #666;
}

/* Multiple notifications stacking */
.log-notification:nth-child(n+2) {
    top: calc(20px + (80px * var(--notification-index, 1)));
}

/* Responsive notification */
@media (max-width: 768px) {
    .log-notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .log-notification.show {
        transform: translateY(0);
    }
    
    .ai-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ai-actions {
        flex-direction: column;
    }
    
    .btn-ai, .batch-ai-btn {
        justify-content: center;
    }
}

/* Table Actions Styling */
.table-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
}

.table-actions .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-actions .btn-success {
    background-color: #10b981;
    color: white;
    border: none;
}

.table-actions .btn-success:hover {
    background-color: #059669;
    transform: translateY(-1px);
}

.table-actions .btn-secondary {
    background-color: #6b7280;
    color: white;
    border: none;
}

.table-actions .btn-secondary:hover {
    background-color: #4b5563;
    transform: translateY(-1px);
}

/* Log History Popup Styles */
.log-history-popup {
    width: 95%;
    max-width: 1400px;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--spacing-6);
    background-color: var(--white);
    border-radius: var(--radius-xl);
}

.log-filters {
    background: var(--light-gray);
    padding: var(--spacing-5);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-5);
    border: 1px solid var(--border-gray);
}

.filter-row {
    display: flex;
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-4);
    flex-wrap: wrap;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    flex: 1;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-1);
    font-size: var(--font-size-sm);
}

.filter-input {
    padding: var(--spacing-2) var(--spacing-3);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    transition: border-color 0.2s ease;
}

.filter-input:focus {
    outline: none;
    border-color: var(--marine-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.filter-actions {
    display: flex;
    gap: var(--spacing-3);
    flex-wrap: wrap;
    margin-top: var(--spacing-4);
    padding-top: var(--spacing-3);
    border-top: 1px solid var(--border-gray);
}

.log-table-container {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-gray);
    overflow-x: auto;
    margin-bottom: var(--spacing-5);
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.log-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
    position: relative;
    z-index: 2;
}

.log-history-table th {
    background: var(--marine-blue);
    color: var(--white);
    padding: var(--spacing-4);
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.log-history-table th:nth-child(1) { width: 12%; } /* Tanggal */
.log-history-table th:nth-child(2) { width: 20%; } /* Nama Produk */
.log-history-table th:nth-child(3) { width: 15%; } /* Nama Client */
.log-history-table th:nth-child(4) { width: 12%; } /* Sold By */
.log-history-table th:nth-child(5) { width: 12%; } /* Airing Date */
.log-history-table th:nth-child(6) { width: 12%; } /* End Date */
.log-history-table th:nth-child(7) { width: 17%; } /* Detail Perubahan */

.log-history-table td:nth-child(1) { width: 12%; }
.log-history-table td:nth-child(2) { width: 20%; }
.log-history-table td:nth-child(3) { width: 15%; }
.log-history-table td:nth-child(4) { width: 12%; }
.log-history-table td:nth-child(5) { width: 12%; }
.log-history-table td:nth-child(6) { width: 12%; }
.log-history-table td:nth-child(7) { width: 17%; }

.log-history-table th:hover {
    background: var(--marine-blue-dark);
}

.log-history-table th i {
    margin-left: var(--spacing-1);
    opacity: 0.7;
}

.log-history-table td {
    padding: var(--spacing-4);
    border-bottom: 1px solid var(--border-gray);
    vertical-align: top;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.log-history-table tbody tr:hover {
    background: var(--light-gray);
}

.log-history-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.log-history-table tbody tr:nth-child(even):hover {
    background: var(--light-gray);
}

.change-type-badge {
    display: inline-block;
    padding: var(--spacing-1) var(--spacing-2);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.change-type-sale {
    background: #dcfce7;
    color: #166534;
}

.change-type-rental {
    background: #dbeafe;
    color: #1e40af;
}

.change-type-edit {
    background: #fef3c7;
    color: #92400e;
}

.change-type-status_change {
    background: #f3e8ff;
    color: #7c3aed;
}

.log-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-3);
    margin-top: var(--spacing-5);
    padding: var(--spacing-4) 0;
    border-top: 1px solid var(--border-gray);
}

.log-pagination button {
    padding: var(--spacing-2) var(--spacing-3);
    border: 1px solid var(--border-gray);
    background: var(--white);
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: var(--font-size-sm);
    transition: all 0.2s ease;
}

.log-pagination button:hover:not(:disabled) {
    background: var(--marine-blue);
    color: var(--white);
    border-color: var(--marine-blue);
}

.log-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.log-pagination button.active {
    background: var(--marine-blue);
    color: var(--white);
    border-color: var(--marine-blue);
}

.log-pagination .page-info {
    color: var(--text-gray);
    font-size: var(--font-size-sm);
    margin: 0 var(--spacing-2);
}

/* Responsive Design for Log History */
@media (max-width: 768px) {
    .log-history-popup {
        width: 98%;
        margin: 1%;
        max-height: 95vh;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .filter-actions {
        justify-content: center;
    }
    
    .log-table-container {
        font-size: var(--font-size-xs);
    }
    
    .log-history-table th,
    .log-history-table td {
        padding: var(--spacing-2);
    }
    
    .log-history-table th {
        font-size: var(--font-size-xs);
    }
}

@media (max-width: 480px) {
    .log-history-table {
        font-size: 0.7rem;
    }
    
    .log-history-table th,
    .log-history-table td {
        padding: var(--spacing-1);
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions button {
        width: 100%;
    }
}

/* Confirmation Dialog Styles */
.confirmation-popup {
    max-width: 450px;
    width: 90%;
    text-align: center;
    padding: var(--spacing-6);
}

.confirmation-popup h3 {
    color: var(--danger-color);
    margin-bottom: var(--spacing-4);
    font-size: var(--font-size-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
}

.confirmation-popup h3 i {
    font-size: var(--font-size-2xl);
}

.confirmation-popup p {
    margin-bottom: var(--spacing-3);
    color: var(--text-dark);
    font-size: var(--font-size-base);
    line-height: 1.5;
}

.confirmation-popup .warning-text {
    color: var(--warning-color);
    font-weight: 600;
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-5);
}

.confirmation-buttons {
    display: flex;
    gap: var(--spacing-3);
    justify-content: center;
    margin-top: var(--spacing-5);
}

.confirmation-buttons .btn {
    min-width: 100px;
    padding: var(--spacing-3) var(--spacing-4);
    font-weight: 600;
}

/* Warning color variable if not defined */
:root {
    --warning-color: #f59e0b;
    --danger-color: #dc2626;
}

/* Loading State */
.log-loading {
    text-align: center;
    padding: var(--spacing-8);
    color: var(--text-gray);
}

.log-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Empty State */
.log-empty {
    text-align: center;
    padding: var(--spacing-8);
    color: var(--text-gray);
}

.log-empty i {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-4);
    opacity: 0.5;
}

/* Export Buttons - Updated for consistent marine blue theme */
.btn-success {
    background: var(--marine-blue-light);
    border-color: var(--marine-blue-light);
    color: var(--white);
}

.btn-success:hover {
    background: var(--marine-blue);
    border-color: var(--marine-blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-info {
    background: var(--marine-blue-dark);
    border-color: var(--marine-blue-dark);
    color: var(--white);
}

.btn-info:hover {
    background: #1e40af;
    border-color: #1e40af;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Slideshow Manager Styles */
.btn-slideshow {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.btn-slideshow:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
}

/* Slideshow Manager Popup */