body {
    background-color: #232323;
    background-image: url("../img/dark_matter.png");
    font-family: 'Arial', sans-serif;
    padding: 0;
    margin: 0;
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Ensure main content area has proper spacing */
.container.my-5 {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 100px; /* Space for footer */
}

/* Mobile body adjustments */
@media (max-width: 768px) {
    .container.my-5 {
        padding: 10px !important;
        padding-bottom: 120px !important;
        align-items: flex-start !important;
        margin-top: 20px !important;
    }
}

.custom-width {
    width: 33%; /* Adjust this value to change the width */
    max-width: 400px; /* Optional: Set a max-width for larger screens */
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .custom-width {
        width: 90% !important;
        max-width: none !important;
    }
    
    .card {
        margin: 10px !important;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .resized-img {
        max-width: 200px !important;
    }
}

.promo-container {
    background-color: white;
    color: black;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    width: 90%;
    text-align: center;
    font-family: 'Arial', sans-serif; /* Change font */
    margin-bottom: 100px; /* Space for footer */
}

/* Mobile dashboard adjustments */
@media (max-width: 768px) {
    .promo-container {
        width: 95% !important;
        padding: 10px !important;
        margin-bottom: 120px !important; /* More space for mobile footer */
    }
    
    .promo-container h1 {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
    }
    
    .table {
        font-size: 12px !important;
    }
    
    .table th,
    .table td {
        padding: 0.3rem !important;
    }
    
    .avatar {
        width: 80px !important;
        height: 80px !important;
    }
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse; /* Make table compact */
    font-size: 14px; /* Smaller font size */
}
.table th,
.table td {
    padding: 0.5rem; /* Reduce padding */
    vertical-align: middle; /* Center align vertically */
    border-top: 1px solid #dee2e6;
}
.table thead th {
    vertical-align: middle;
    border-bottom: 2px solid #dee2e6;
}
.table tbody + tbody {
    border-top: 2px solid #dee2e6;
}
.table .table {
    background-color: #fff;
}
.table img {
    max-width: 40px; /* Reduce image size */
    max-height: 40px;
}

.pagination a {
    margin: 0 2px; /* Reduce margin */
    padding: 3px 6px; /* Reduce padding */
    text-decoration: none;
    border: 1px solid #ddd;
    color: #333;
    font-size: 14px; /* Smaller font size */
}
.pagination a:hover {
    background-color: #ddd;
}

.footer {
    margin-top: auto;
    background-color: #343a40;
    color: white;
    padding: 1rem 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Mobile footer adjustments */
@media (max-width: 768px) {
    .footer {
        padding: 0.5rem 0 !important;
        font-size: 12px !important;
    }
    
    .footer .container {
        padding: 0 10px !important;
    }
}
.footer a {
    color: white;
    text-decoration: none; /* Remove underlining */
}
.footer a:hover {
    text-decoration: none; /* Ensure no underlining on hover */
    color: white; /* Ensure the color stays the same */
}

.promo-link {
    color: red;
    text-decoration: none;
}
.promo-link:hover {
    color: darkred;
    text-decoration: none;
}

.custom-card {
    max-width: 800px;
    margin: auto;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 10%;
}

.promo-summary {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.table.borderless td, .table.borderless th {
    border: none;
}

.promo-image {
    width: 100px;
    height: 100px;
    border-radius: 10%;
    margin: 5px;
}

.half-opacity {
    opacity: 0.5;
}

.forgot-password-link {
    color: lightseagreen;
    font-family: 'Arial', sans-serif; 
    text-decoration: none;
    font-size: smaller;
}
.forgot-password-link:hover {
    text-decoration: none; 
    color: blue; 
}

/* Modern Table Styling */
.table-modern {
    border: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.table-modern thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
    border: none;
    position: relative;
}

.table-modern tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f3f4;
}

.table-modern tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.table-modern tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border: none;
    font-size: 0.9rem;
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

/* Modern Pagination */
.pagination-modern {
    --bs-pagination-padding-x: 0.75rem;
    --bs-pagination-padding-y: 0.5rem;
    --bs-pagination-font-size: 0.9rem;
    --bs-pagination-color: #6c757d;
    --bs-pagination-bg: #fff;
    --bs-pagination-border-width: 1px;
    --bs-pagination-border-color: #dee2e6;
    --bs-pagination-border-radius: 6px;
    --bs-pagination-hover-color: #495057;
    --bs-pagination-hover-bg: #f8f9fa;
    --bs-pagination-hover-border-color: #dee2e6;
    --bs-pagination-focus-color: #495057;
    --bs-pagination-focus-bg: #f8f9fa;
    --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: #667eea;
    --bs-pagination-active-border-color: #667eea;
    --bs-pagination-disabled-color: #adb5bd;
    --bs-pagination-disabled-bg: #fff;
    --bs-pagination-disabled-border-color: #dee2e6;
}

.pagination-modern .page-link {
    border-radius: 6px !important;
    margin: 0 2px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-modern .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.4);
}

.pagination-modern .page-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination-info {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive table improvements */
.table-responsive {
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Image styling in tables */
.table-modern img {
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.table-modern img:hover {
    transform: scale(1.1);
}

/* Reset any conflicting styles */
.promo-track * {
    box-sizing: border-box;
}

/* Modern Promo Display */
.promo-display-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    padding: 0 60px;
    clear: both;
}

.promo-display-area {
    width: 1150px; /* Exactly 10 items × 115px (100px + 15px gap) */
    overflow: hidden;
    border-radius: 10px;
}

.promo-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    transition: transform 0.3s ease;
    gap: 15px;
    align-items: center;
    width: max-content;
}

.promo-item {
    flex: 0 0 100px !important;
    width: 100px !important;
    height: 100px !important;
    display: inline-block !important;
    text-decoration: none;
    vertical-align: top;
}

.promo-img {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover;
    border-radius: 8px;
    display: block !important;
    margin: 0 !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.promo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-next {
    right: 10px;
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

.carousel-btn:disabled:hover {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Enhanced promo image styling */
.promo-image {
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.promo-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Simple grid layout for ≤10 promos */
.promo-images-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.promo-images-grid a {
    flex: 0 0 auto;
}

.promo-images-grid .promo-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

/* Responsive carousel */
@media (max-width: 768px) {
    .promo-display-container {
        padding: 0 40px !important;
        margin: 10px 0 !important;
    }
    
    .promo-display-area {
        width: 100% !important;
        max-width: 300px !important; /* Show fewer items on mobile */
    }
    
    .carousel-btn {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
    }
    
    .carousel-btn-prev {
        left: 5px !important;
    }
    
    .carousel-btn-next {
        right: 5px !important;
    }
    
    .promo-img {
        width: 80px !important;
        height: 80px !important;
    }
    
    .promo-item {
        flex: 0 0 80px !important;
        width: 80px !important;
        height: 80px !important;
    }
}

/* List Manager Styling */
.list-manager-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.list-manager-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0;
}

.nav-tabs .nav-link:hover:not(.active) {
    background-color: #f8f9fa;
    color: #495057;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 500;
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 500;
    color: white;
}

.badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

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

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px 15px 0 0 !important;
    border-bottom: 1px solid #dee2e6;
}/
* Promo Selection Styling */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.promo-item-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.promo-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.promo-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
}

.promo-artwork {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 1rem;
    border: 2px solid #dee2e6;
}

.promo-info {
    flex: 1;
}

.promo-artist {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.promo-title {
    font-weight: 500;
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.promo-label {
    font-size: 0.8rem;
    color: #868e96;
    margin-bottom: 0.25rem;
}

.promo-expiry {
    font-size: 0.75rem;
    color: #dc3545;
    font-weight: 500;
}

.promo-label {
    cursor: pointer;
    margin: 0;
}

.form-check-input:checked + .promo-label .promo-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.form-check-input:checked + .promo-label .promo-artist,
.form-check-input:checked + .promo-label .promo-title,
.form-check-input:checked + .promo-label .promo-label,
.form-check-input:checked + .promo-label .promo-expiry {
    color: white;
}

.form-check-input:checked + .promo-label .promo-artwork {
    border-color: white;
}

/* Contact Select Styling */
#contactSelect {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

#contactSelect:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Bulk Send Promo Select */
#bulkPromoSelect {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

#bulkPromoSelect:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Tab Content Animations */
.tab-pane {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Search Input Styling */
input[type="text"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* List Container Styling */
.list-container {
    background: #f8f9fa;
    border-radius: 8px;
}

.list-container .form-check {
    padding: 0.5rem;
    margin: 0;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.list-container .form-check:last-child {
    border-bottom: none;
}

.list-container .form-check:hover {
    background-color: #e9ecef;
}

/* Button Hover Effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .promo-grid {
        grid-template-columns: 1fr;
    }
    
    .promo-card {
        padding: 0.75rem;
    }
    
    .promo-artwork {
        width: 50px;
        height: 50px;
    }
}/* F
ix checkbox positioning in bulk send section */
.bulk-send-list-item .form-check-input {
    margin-left: 1rem;
}

.bulk-send-list-item .form-check-label {
    margin-left: 0.5rem;
}/* 
Enhanced List Manager Styles */
.contact-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.contact-result-item {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.contact-result-item:hover {
    background-color: #f8f9fa;
}

.contact-result-item:last-child {
    border-bottom: none;
}

.promo-confirm-item {
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa;
}

.promo-confirm-item:last-child {
    margin-bottom: 0;
}

/* Enhanced form styling */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.badge {
    font-size: 0.875em;
}

/* Modal enhancements */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-title {
    font-weight: 600;
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 0.5rem;
}

.alert-info {
    background-color: #e7f3ff;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
}

/* Tab styling */
.nav-tabs .nav-link {
    border: 1px solid transparent;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    color: #495057;
    font-weight: 500;
}

.nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
    color: #0d6efd;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

/* Card enhancements */
.card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* Button styling */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Search input styling */
#contact_search, #edit_contact_search {
    position: relative;
}

.mb-3 {
    position: relative;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .contact-dropdown {
        position: fixed;
        left: 1rem;
        right: 1rem;
        top: auto;
    }
    
    .modal-dialog {
        margin: 1rem;
    }
    
    .nav-tabs {
        flex-wrap: wrap;
    }
    
    .nav-tabs .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Success/Error states */
.is-valid {
    border-color: #198754;
}

.is-invalid {
    border-color: #dc3545;
}

.valid-feedback {
    color: #198754;
}

.invalid-feedback {
    color: #dc3545;
}

/* Enhanced promo cards */
.promo-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* List item styling */
.list-item, .bulk-list-item {
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
}

.list-item:hover, .bulk-list-item:hover {
    background-color: #f8f9fa;
}

/* Form validation styling */
.was-validated .form-control:valid {
    border-color: #198754;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='m2.3 6.73.94-.94 1.44 1.44L7.4 4.5l.94.94L4.66 9.2z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 2.4 2.4M8.2 4.6l-2.4 2.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}