/* Custom focus color for all inputs */
input:focus, textarea:focus, select:focus {
    border-color: #a377fffc !important;
    box-shadow: 0 0 0 0.2rem rgba(163, 119, 255, 0.5) !important;
    outline: none;
}
/*
 * Main Stylesheet for AI Submission System
 * Color Scheme: Black backgrounds with dark gray text
 */

/* ===== Color Variables ===== */
:root {
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --bg-card: #2a2a2a;
    --bg-hover: #333333;
    --text-primary: #a0a0a0;
    --text-secondary: #808080;
    --text-light: #666666;
    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --border-color: #404040;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

/* ===== Global Styles ===== */
body {
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    padding-bottom: 0;
}
/* Fix: Ensure .song-value fills parent, no right gap, no max-width, no extra margin/padding */
.song-details-list {
    padding: 0 !important;
    margin: 0 !important;
}
.song-details-list .song-detail-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%;
    margin: 0 0 0.5rem 0;
    padding: 0;
    box-sizing: border-box;
}
.song-details-list .song-label {
    min-width: 110px;
    max-width: 180px;
    margin-right: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: left;
    padding: 0;
}
.song-details-list .song-value {
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
    word-break: break-word;
    white-space: pre-line;
    text-align: left;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Song Details block layout, no right gap */
.song-details-list .song-detail-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 0.5rem;
}
.song-details-list .song-label {
    min-width: 110px;
    max-width: 180px;
    margin-right: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: left;
}
.song-details-list .song-value {
    flex: 1 1 0%;
    min-width: 0;
    word-break: break-word;
    white-space: pre-line;
    text-align: left;
}
/* Song Details flex layout for perfect mobile/desktop alignment */
.song-details-list .song-label {
    min-width: 110px;
    max-width: 180px;
    white-space: nowrap;
    flex-shrink: 0;
}
.song-details-list .song-value {
    min-width: 0;
    word-break: break-word;
    white-space: pre-line;
}
/* Song Details Bootstrap grid layout spacing and wrapping */
.song-details-list .row {
    align-items: flex-start;
}
.song-details-list .fw-bold {
    white-space: nowrap;
    overflow-wrap: break-word;
}
.song-details-list .wrap-value-cell {
    word-break: break-word;
    white-space: pre-line;
}
/* Make <th> columns in admin order details tables narrower for better value wrapping */
.narrow-th {
    width: 1%;
    white-space: nowrap;
    min-width: 90px;
    max-width: 120px;
    vertical-align: top;
}
/* Force table value columns to wrap for mobile/tablet */
.wrap-value-cell {
    white-space: pre-line;
    word-break: break-word;
    max-width: 220px;
}
@media (max-width: 767.98px) {
    .wrap-value-cell {
        max-width: 120px;
        font-size: 0.97em;
    }
}
/* Responsive table wrapper for mobile */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767.98px) {
    .table-responsive table {
        min-width: 600px;
    }
}
/* Left align the order title in admin order list */
.admin-order-title {
    text-align: left !important;
    margin-left: 0;
    padding-left: 0;
    font-weight: 500;
}
/* Site Navigation Bar */
.site-navbar {
    height: 60px;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.site-navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.site-navbar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
}

.site-navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
}

.site-navbar-brand {
    display: flex;
    align-items: center;
}

.site-navbar-brand a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-navbar-logo {
    width: 48px;
    height: 48px;
}

.site-navbar-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .site-navbar-title {
        display: none;
    }
}

.site-navbar-user .nav-link {
    color: #ffffff;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.site-navbar-overlay .site-navbar-user .nav-link {
    background: rgba(0, 0, 0, 0.3);
}

.site-navbar-fixed .site-navbar-user .nav-link {
    background: rgba(255, 255, 255, 0.1);
}

.site-navbar-user .nav-link:hover {
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.site-navbar-user .dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px var(--shadow-color);
    margin-top: 0.5rem;
}

.site-navbar-user .dropdown-item {
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    transition: background 0.2s;
}

.site-navbar-user .dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.site-navbar-user .dropdown-item i {
    margin-right: 0.5rem;
    width: 20px;
}

.site-navbar-user .dropdown-divider {
    border-color: var(--border-color);
    opacity: 0.3;
}

/* Body padding for fixed navbar */
body.has-navbar {
    padding-top: 60px;
}

body.homepage.has-navbar {
    padding-top: 0;
}

.container {
    margin-top: 2rem;
}

body.has-navbar .container:first-of-type {
    margin-top: 2rem;
}

/* Old navbar styles for other pages */
.customer-navbar {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    box-shadow: 0 4px 6px var(--shadow-color);
    padding: 1rem 0;
}

.customer-navbar .navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
}

.customer-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s;
    padding: 0.5rem 1rem;
}

.customer-navbar .nav-link:hover,
.customer-navbar .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.customer-navbar .navbar-text {
    color: rgba(255, 255, 255, 0.95);
}

.customer-navbar .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.customer-navbar .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

/* Placeholder Text Styling */
::placeholder {
    color: #999999 !important;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #b9b9b9 !important;
}

::-ms-input-placeholder {
    color: #b9b9b9 !important;
}

/* ===== Main Containers ===== */
.order-form,
.orders-container,
.success-card,
.upload-card {
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: 0 10px 40px var(--shadow-color);
    padding: 40px;
    margin: 0 auto;
    color: var(--text-primary);
}

.order-form {
    max-width: 900px;
}

.orders-container {
    max-width: 1200px;
}

.success-card,
.upload-card {
    max-width: 900px;
}

/* ===== Headings ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

.page-title {
    color: var(--text-primary);
}

.success-title {
    color: var(--success-color);
}

/* ===== Section Headers ===== */
.section-header {
    border-bottom: 3px solid var(--accent-primary);
    padding-bottom: 10px;
    margin-bottom: 25px;
    color: var(--text-primary);
}

/* ===== Form Elements ===== */
.bullet-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 5px;
}

.bullet-item input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
}

.bullet-item input:focus {
    outline: none;
}

.form-control,
.form-select,
textarea.form-control {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.form-label {
    color: var(--text-primary);
}

/* ===== Buttons ===== */
.star-btn {
    cursor: pointer;
    font-size: 20px;
    color: var(--text-light);
    transition: color 0.2s;
}

.star-btn.active {
    color: var(--warning-color);
}

.remove-btn {
    color: var(--danger-color);
    cursor: pointer;
}

/* ===== Music Video Options ===== */
.mv-option {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-secondary);
}

.mv-option:hover {
    border-color: var(--accent-primary);
    background: var(--bg-hover);
}

.mv-option input[type="radio"]:checked ~ .mv-content {
    border-left: 4px solid var(--accent-primary);
    padding-left: 16px;
}

.price-badge {
    font-size: 24px;
    font-weight: bold;
    color: var(--success-color);
}

/* ===== PayPal Container ===== */
#paypal-button-container {
    margin-top: 20px;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ===== Order Cards ===== */
.order-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
    background: var(--bg-secondary);
}

.order-card:hover {
    box-shadow: 0 4px 12px var(--shadow-color);
    border-color: var(--accent-primary);
}

/* ===== Status Badges ===== */
.status-badge {
    font-size: 12px;
    padding: 6px 12px;
}

/* ===== Thumbnails ===== */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.thumbnail-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

/* ===== Bullet Lists ===== */
.bullet-list {
    font-size: 14px;
    color: var(--text-primary);
}

.bullet-favorite {
    color: var(--warning-color);
}

/* ===== Icons ===== */
.large-icon {
    font-size: 80px;
    color: var(--text-light);
}

.success-icon {
    font-size: 80px;
    color: var(--success-color);
}

.error-icon {
    font-size: 60px;
    color: var(--danger-color);
}

.upload-icon {
    font-size: 48px;
    color: var(--accent-primary);
}

.login-icon {
    font-size: 60px;
    color: var(--accent-primary);
}

/* ===== Upload Zone ===== */
.drop-zone {
    border: 3px dashed var(--accent-primary);
    border-radius: 10px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-secondary);
}

.drop-zone:hover,
.drop-zone.dragover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

/* ===== Preview Grid ===== */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.progress-item {
    margin-bottom: 10px;
}

/* ===== Login & Register Cards ===== */
.login-card,
.register-card {
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: 0 10px 40px var(--shadow-color);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.register-card {
    max-width: 500px;
}

.login-header,
.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-icon {
    font-size: 60px;
    color: var(--accent-primary);
}

/* ===== Setup Check Styles ===== */
.setup-container {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 10px;
}

.success {
    color: var(--success-color);
}

.error {
    color: var(--danger-color);
}

.warning {
    color: var(--warning-color);
}

.check-item {
    padding: 10px;
    margin: 5px 0;
    border-left: 4px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.check-item.pass {
    border-color: var(--success-color);
    background: var(--bg-secondary);
}

.check-item.fail {
    border-color: var(--danger-color);
    background: var(--bg-secondary);
}

.check-item.warn {
    border-color: var(--warning-color);
    background: var(--bg-secondary);
}

.delete-warning {
    background: var(--bg-secondary);
    padding: 20px;
    border: 2px solid var(--danger-color);
    margin-top: 30px;
    border-radius: 5px;
}

.summary-result {
    font-size: 18px;
    font-weight: bold;
}

/* ===== Login Page Body ===== */
.login-page {
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-page.has-navbar {
    padding-top: 60px;
}

/* ===== Alert Overrides ===== */
.alert {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.2);
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.2);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.2);
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.alert-info {
    background-color: rgba(13, 110, 253, 0.2);
    border-color: #0d6efd;
    color: #0d6efd;
}

/* ===== Card Overrides ===== */
.card {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.card-header {
    background-color: var(--bg-hover);
    border-bottom-color: var(--border-color);
    color: var(--text-primary);
}

/* ===== Table Overrides ===== */
.table {
    color: var(--text-primary);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--bg-secondary);
}

.table-hover tbody tr:hover {
    background-color: var(--bg-hover);
}

/* ===== Badge Overrides ===== */
.badge {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* ===== Button Overrides ===== */
.btn-primary {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

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

/* ===== Navbar Overrides (if applicable) ===== */
.navbar {
    /* background-color: var(--bg-card); */
    border-bottom: 1px solid var(--border-color);
}

.navbar .nav-link {
    color: var(--text-primary);
}

.navbar .nav-link:hover {
    color: var(--accent-primary);
}

/* ===== Pagination ===== */
.pagination .page-link {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.pagination .page-link:hover {
    background-color: var(--bg-hover);
    color: var(--accent-primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* ===== Text Color Utilities ===== */
.text-muted {
    color: var(--text-secondary) !important;
}

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

/* ===== Admin Dashboard Styles ===== */
.order-row {
    cursor: pointer;
}

.order-row:hover {
    background: var(--bg-hover);
}

/* ===== Homepage Specific Styles ===== */

/* Reset margins and padding for homepage */
html,
body.homepage {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    margin: 0;
    padding: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-primary);
    max-width: 800px;
    padding: 40px 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #e0e0e0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.hero-cta {
    font-size: 1.2rem;
    padding: 15px 40px;
    border-radius: 50px;
    background: var(--accent-primary);
    border: none;
    color: white;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.hero-cta:hover {
    background: var(--accent-secondary);
    transform: scale(1.05);
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Package Sections */
.package-section {
    padding: 80px 0;
}

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

.package-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.package-section:nth-child(even) .package-content {
    flex-direction: row-reverse;
}

/* Section 2 (Song + 10-sec Video): Stack package info above player */
.package-section:nth-of-type(3) .package-content {
    flex-direction: column !important;
    align-items: stretch;
}

.package-section:nth-of-type(3) .package-info {
    text-align: center;
}

/* Section 3 (Full AI Video): Stack package info above player */
.package-section:nth-of-type(4) .package-content {
    flex-direction: column !important;
    align-items: stretch;
}

.package-section:nth-of-type(4) .package-info {
    text-align: center;
}

.package-video {
    flex: 1;
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.package-video.portrait {
    aspect-ratio: 9/16;
    max-width: 400px;
    margin: 0 auto;
}

.package-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Audio Player Container */
.audio-player-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-hover) 100%);
    border-radius: 15px;
}

.audio-player-container i.audio-icon {
    font-size: 4rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.audio-player-container h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.audio-player-container p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.audio-player-container audio {
    width: 100%;
    max-width: 500px;
    outline: none;
    border-radius: 25px;
}

/* Custom audio player styling */
audio::-webkit-media-controls-panel {
    background-color: var(--bg-card);
}

audio::-webkit-media-controls-play-button {
    background-color: var(--accent-primary);
    border-radius: 50%;
}

.package-info {
    flex: 1;
}

.package-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.package-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-secondary);
}

.package-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--success-color);
    margin-bottom: 25px;
}

.package-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.package-features li {
    padding: 10px 0;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.package-features li i {
    color: var(--accent-primary);
    margin-right: 10px;
}

.order-btn {
    padding: 12px 35px;
    font-size: 1.1rem;
    border-radius: 8px;
    background: var(--accent-primary);
    border: none;
    color: white;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.order-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Video Placeholder */
.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-hover) 100%);
    color: var(--text-secondary);
    font-size: 1.2rem;
    text-align: center;
    padding: 20px;
}

/* ===== Homepage Responsive Styles ===== */
@media (max-width: 768px) {
    .hero-content {
        padding: 40px 30px;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .package-content {
        flex-direction: column !important;
        gap: 30px;
        padding: 0 15px;
    }

    .package-info {
        text-align: center;
    }

    .package-title {
        font-size: 2rem;
    }

    .package-description {
        text-align: center;
    }

    .package-price {
        text-align: center;
    }

    .package-features {
        text-align: left;
        display: inline-block;
        max-width: 100%;
    }

    .order-btn {
        display: block;
        margin: 0 auto;
        width: 100%;
        max-width: 300px;
    }

    .hero-cta {
        font-size: 1rem;
        padding: 12px 30px;
    }

    .package-video {
        width: 100%;
        min-height: 350px;
    }

    .package-video:has(.audio-player-container) {
        aspect-ratio: unset !important;
        min-height: 350px;
        height: auto;
        overflow: visible !important;
        display: flex;
    }

    .audio-player-container {
        padding: 30px 20px;
        min-height: 350px;
        height: auto;
        width: 100%;
    }

    .audio-player-container i.audio-icon {
        font-size: 3rem;
    }

    .audio-player-container h4 {
        font-size: 1.1rem;
    }

    .audio-player-container audio {
        max-width: 100%;
        width: 100%;
    }

    .package-video.portrait {
        max-width: 300px;
    }
}

/* Extra small devices (portrait phones) */
@media (max-width: 480px) {
    .hero-content {
        padding: 30px 20px;
    }

    .hero-title {
        font-size: 2rem;
        padding: 0 10px;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-cta {
        font-size: 0.95rem;
        padding: 10px 25px;
    }

    .package-section {
        padding: 40px 15px;
    }

    .package-title {
        font-size: 1.75rem;
    }

    .package-price {
        font-size: 1.75rem;
    }

    .package-description {
        font-size: 1rem;
    }

    .package-features li {
        font-size: 0.95rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .package-video {
        width: 100%;
        min-height: 300px;
    }

    .package-video:has(.audio-player-container) {
        aspect-ratio: unset !important;
        min-height: 300px;
        height: auto;
        overflow: visible !important;
        display: flex;
    }

    .audio-player-container {
        padding: 20px 15px;
        min-height: 300px;
        height: auto;
        width: 100%;
    }

    .audio-player-container i.audio-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .audio-player-container h4 {
        font-size: 1rem;
    }

    .audio-player-container p {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .audio-player-container audio {
        width: 100%;
    }

    .package-video.portrait {
        max-width: 250px;
    }

    .customer-navbar .navbar-text {
        display: none;
    }

    .customer-navbar .btn-sm {
        font-size: 0.875rem;
    }

    .order-card {
        padding: 20px;
    }

    .order-card .col-md-4 {
        margin-top: 20px;
    }
}

/* ===== Order Detail Modal ===== */
.order-modal {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.order-modal .modal-header {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: #ffffff;
    border-bottom: 2px solid var(--border-color);
}

.order-modal .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.order-modal .modal-body {
    background: var(--bg-card);
    padding: 1.5rem;
}

.order-modal .modal-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.order-modal hr {
    border-color: var(--border-color);
    opacity: 0.3;
}

.modal-bullet-list {
    list-style: none;
    padding: 0;
}

.modal-bullet-list li {
    padding: 8px 12px;
    margin-bottom: 8px;
    background: var(--bg-secondary);
    border-radius: 5px;
    border-left: 3px solid var(--accent-primary);
}

.modal-bullet-list li.favorite-bullet {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: var(--warning-color);
}

.modal-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.modal-image-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: transform 0.2s;
}

.modal-image-item:hover {
    transform: scale(1.05);
    border-color: var(--accent-primary);
}

.modal-image-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

/* Mobile-specific modal adjustments */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-image-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .modal-image-item img {
        height: 100px;
    }
}

/* ===== Admin Orders List Styles ===== */
.admin-orders-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-order-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 12px 16px;
    transition: all 0.2s ease;
}

.admin-order-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

.admin-order-main {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.admin-order-date,
.admin-order-customer,
.admin-order-type,
.admin-order-payment {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.admin-order-date {
    min-width: 120px;
    flex-shrink: 0;
}

.admin-order-customer {
    min-width: 150px;
    flex: 1;
}

.admin-order-type {
    flex-shrink: 0;
    white-space: nowrap;
}

.admin-order-date i,
.admin-order-customer i,
.admin-order-type i {
    color: var(--accent-primary);
    font-size: 1rem;
}

.admin-order-payment .badge {
    font-size: 0.8rem;
    padding: 4px 10px;
}

.admin-order-actions {
    margin-left: auto;
}

.admin-order-actions .btn {
    padding: 4px 12px;
    font-size: 0.85rem;
}

/* Mobile responsiveness for admin orders */
@media (max-width: 768px) {
    .admin-order-item {
        padding: 10px 12px;
    }

    .admin-order-main {
        gap: 10px;
    }

    .admin-order-date,
    .admin-order-customer,
    .admin-order-type {
        min-width: auto;
        font-size: 0.85rem;
    }

    .admin-order-customer {
        flex: 1 1 100%;
    }

    .admin-order-actions {
        margin-left: 0;
        flex: 1 1 100%;
    }

    .admin-order-actions .btn {
        width: 100%;
    }
}

/* ===== Media Player Styles ===== */
.media-player-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.main-player {
    flex-shrink: 0;
    width: 335px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.main-player-artwork {
    width: 100%;
    height: 295px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
}

.main-player-artwork img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.main-player-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.main-player-title span {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-text 12s linear infinite;
}

@keyframes scroll-text {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        transform: translateX(-100%); 
    }
}

.main-player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.main-player-btn {
    background: none;
    border: none;
    color: #000;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
    transition: all 0.2s;
}

.main-player-btn:hover {
    color: #667eea;
    transform: scale(1.1);
}

.main-player-btn.play-btn {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.main-player-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.main-player-progress {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.main-player-progress-bar {
    height: 100%;
    background: #667eea;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s;
}

.media-list {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.media-item {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    transition: background 0.2s;
    cursor: pointer;
}

.media-item:hover {
    background: rgba(102, 126, 234, 0.05);
}

.media-item.active {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

.media-thumbnail-wrapper {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    transition: background 0.2s;
}

.media-item:hover .play-button-overlay {
    background: rgba(0, 0, 0, 0.8);
}

.media-thumbnail {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
}

.media-icon {
    max-width: 120px;
    max-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

.media-icon i {
    font-size: 2rem;
    color: white;
}

.media-content {
    flex-grow: 1;
    min-width: 0;
    padding-right: 15px;
}

.media-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-meta {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    gap: 12px;
    align-items: center;
}

.media-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #e3f2fd;
    color: #1976d2;
}

.media-actions {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
}

/* ===== Index Page Media Player (Column Layout) ===== */
.homepage .media-player-container {
    flex-direction: column;
}

.homepage .main-player {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: transparent;
    border: none;
    padding: 0;
}

.homepage .main-player-btn {
    color: #fff;
}

.homepage .main-player-btn:hover {
    color: #667eea;
}

.homepage .main-player-btn.play-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.homepage .main-player-btn.play-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
}

.homepage .media-list {
    width: 100%;
}

.homepage .media-item {
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
}

.homepage .media-item:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.homepage .media-item.active {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.homepage .media-thumbnail-wrapper {
    margin-right: 0;
    margin-bottom: 10px;
}

.homepage .media-content {
    width: 100%;
    text-align: center;
    padding-right: 0;
}

.homepage .media-title {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.homepage .media-meta {
    justify-content: center;
}

.homepage .media-actions {
    width: 100%;
    margin-top: 10px;
}

.homepage .media-actions .btn {
    width: 100%;
}

/* ===== Sample Audio Player (Package Section 1) ===== */
.sample-audio-player {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.sample-main-player {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.sample-player-artwork {
    width: 100%;
    height: 295px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.sample-player-artwork img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sample-player-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: center;
    color: #fff;
}

.sample-player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.sample-player-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
    transition: all 0.2s;
}

.sample-player-btn:hover {
    color: #667eea;
    transform: scale(1.1);
}

.sample-player-btn.sample-play-btn {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    flex-shrink: 0;
}

.sample-player-btn.sample-play-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    transform: scale(1.05);
}

.sample-player-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #ccc;
    margin-top: 5px;
}

.sample-player-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.sample-player-progress-bar {
    height: 100%;
    background: #667eea;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s;
}

.sample-song-list {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 5px;
}

.sample-song-list::-webkit-scrollbar {
    width: 8px;
}

.sample-song-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.sample-song-list::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 4px;
}

.sample-song-list::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

.sample-song-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.sample-song-item:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.sample-song-item.active {
    background: rgba(102, 126, 234, 0.25);
    border-color: #667eea;
}

.sample-song-artwork {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.sample-artwork-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.5rem;
}

.sample-artwork-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sample-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.2s;
}

.sample-song-item:hover .sample-play-overlay {
    opacity: 1;
}

.sample-play-overlay i {
    color: white;
    font-size: 1.5rem;
}

.sample-song-name {
    flex: 1;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== YouTube Playlist Player (Package Section 2) ===== */
.youtube-player-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    flex-direction: row;
}

/* Section 3: Playlist below player */
section:nth-of-type(4) .youtube-player-container {
    flex-direction: column;
    max-width: 100%;
}

.youtube-main-player {
    flex: 1;
    min-width: 0;
}

.youtube-video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.youtube-video-wrapper.portrait {
    aspect-ratio: 9 / 16;
    max-width: 400px;
    margin: 0 auto;
}

/* Section 3 uses landscape videos (default aspect ratio) */
#youtubeVideoWrapperSection3 {
    aspect-ratio: 16 / 9;
    max-width: 100%;
}

#youtubeVideoWrapperSection3.portrait {
    aspect-ratio: 9 / 16;
    max-width: 400px;
}

.youtube-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder-initial {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
    padding: 40px 20px;
}

.youtube-playlist {
    width: 280px;
    flex-shrink: 0;
    max-height: 600px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 5px;
}

/* Section 3: Full width playlist below player */
section:nth-of-type(4) .youtube-playlist {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.youtube-playlist::-webkit-scrollbar {
    width: 8px;
}

.youtube-playlist::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.youtube-playlist::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 4px;
}

.youtube-playlist::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

.youtube-playlist-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.youtube-playlist-item:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.youtube-playlist-item.active {
    background: rgba(102, 126, 234, 0.25);
    border-color: #667eea;
}

.youtube-thumbnail {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.youtube-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.youtube-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.2s;
}

.youtube-playlist-item:hover .youtube-play-overlay {
    opacity: 1;
}

.youtube-play-overlay i {
    color: white;
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.youtube-video-title {
    padding: 5px 10px;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
    word-wrap: break-word;
    flex: 1;
}

@media (max-width: 768px) {
    .youtube-player-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .youtube-playlist {
        width: 100%;
        max-height: 400px;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
    }
    
    .youtube-playlist-item {
        min-width: auto;
        flex-shrink: 0;
    }
    
    .youtube-video-wrapper.portrait {
        max-width: 100%;
    }
}

/* ===== Media Player Mobile Responsive ===== */
@media (max-width: 768px) {
    .media-player-container {
        flex-direction: column;
        gap: 20px;
    }

    .main-player {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .media-list {
        width: 100%;
    }

    .media-item {
        flex-wrap: wrap;
        justify-content: center;
    }

    .media-thumbnail-wrapper {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .media-content {
        width: 100%;
        text-align: center;
        padding-right: 0;
    }

    .media-title {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .media-meta {
        justify-content: center;
    }

    .media-actions {
        width: 100%;
        margin-top: 10px;
    }

    .media-actions .btn {
        width: 100%;
    }
}

/* ===== Admin Section Mobile Responsiveness ===== */

/* Dashboard stats cards */
@media (max-width: 991px) {
    .admin-order-date {
        min-width: 100px;
        font-size: 0.8rem;
    }
    
    .admin-order-customer {
        min-width: 130px;
    }
}

@media (max-width: 767px) {
    /* Stack dashboard cards on mobile */
    .container-fluid .row.mb-4 .col-md-3 {
        margin-bottom: 15px;
    }
    
    /* Filter buttons responsive */
    .card-header .btn-group {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .card-header .btn-group .btn {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    /* Order detail page */
    .order-detail-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .order-detail-header .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .order-detail-header .btn {
        width: 100%;
    }
}

/* Send to Grok / ChatGPT page responsiveness */
@media (max-width: 767px) {
    #grokForm .row .col-md-6 {
        margin-bottom: 10px;
    }
    
    /* Stack Generate and Save buttons */
    .d-grid.gap-2.d-md-flex {
        flex-direction: column;
    }
    
    .d-grid.gap-2.d-md-flex .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Send to Grok/ChatGPT buttons */
    .card-footer .d-grid.gap-2.d-md-flex .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Bullet points list */
    .list-group-item .input-group {
        flex-wrap: nowrap;
    }
    
    .list-group-item .input-group .form-control {
        font-size: 0.85rem;
    }
    
    .list-group-item .input-group .btn {
        padding: 4px 8px;
        font-size: 0.85rem;
    }
}

/* Complete order page */
@media (max-width: 767px) {
    .upload-zone {
        padding: 20px;
    }
    
    .media-file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .media-file-item i {
        font-size: 1.5rem;
    }
}

/* Users management page */
@media (max-width: 767px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 8px 4px;
        white-space: nowrap;
    }
    
    .table .btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

/* Promo codes page */
@media (max-width: 767px) {
    .promo-code-item {
        padding: 12px;
    }
    
    .promo-code-item .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .promo-code-item .btn {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* General admin mobile improvements */
@media (max-width: 576px) {
    /* Navbar improvements */
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    .navbar-brand span {
        font-size: 0.85rem;
    }
    
    .navbar-brand img {
        width: 24px;
        height: 24px;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Card headers */
    .card-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
    
    .card-header h5,
    .card-header h6 {
        font-size: 0.95rem;
        margin-bottom: 0;
    }
    
    .card-header .badge {
        align-self: flex-start;
    }
    
    /* Badges */
    .badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    /* Order detail tables */
    .table-sm th,
    .table-sm td {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
    
    .table-sm th {
        width: 40%;
        white-space: nowrap;
    }
    
    .table-sm td {
        word-break: break-word;
    }
    
    /* Forms */
    .form-label {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    
    .form-control,
    .form-select {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    /* Buttons */
    .btn-lg {
        font-size: 0.95rem;
        padding: 10px 20px;
    }
    
    .btn {
        font-size: 0.85rem;
    }
    
    /* Container padding */
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card-body {
        padding: 12px;
    }
    
    /* Pre-formatted text */
    pre {
        font-size: 0.75rem;
        padding: 10px;
        overflow-x: auto;
    }
}

/* Landscape mobile optimization */
@media (max-width: 767px) and (orientation: landscape) {
    .navbar {
        min-height: 50px;
    }
    
    .container-fluid {
        margin-top: 10px;
    }
}

/* Small screen specific fixes */
@media (max-width: 400px) {
    .btn-group .btn {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .card {
        margin-bottom: 10px;
    }
    
    .admin-order-main {
        gap: 8px;
    }
    
    .admin-order-date,
    .admin-order-customer,
    .admin-order-type,
    .admin-order-payment {
        font-size: 0.75rem;
    }
}

/* ===== Site Footer ===== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    margin-top: 50px;
    width: 100%;
}

.login-page .site-footer {
    margin-top: 40px;
}

.site-footer p {
    margin: 0;
}

.site-footer .btn-outline-primary {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.site-footer .btn-outline-primary:hover {
    background: var(--accent-primary);
    color: #fff;
}
.site-footer .container {
    margin-top: 0px !important;
}

/* Footer responsive */
@media (max-width: 767px) {
    .site-footer {
        padding: 15px 0;
        margin-top: 40px;
    }
    
    .site-footer .btn {
        margin-top: 10px;
    }
}

/* ===== Tips Container ===== */
.tips-container {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.tips-container .card-header h6 {
    font-size: 14px;
    font-weight: 600;
}

.tips-content {
    padding: 15px;
}

.tip-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.tip-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.tip-heading {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.tip-text {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.tip-text:last-child {
    margin-bottom: 0;
}

/* Scrollbar styling for tips container */
.tips-container::-webkit-scrollbar {
    width: 6px;
}

.tips-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.tips-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.tips-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

