/* Dashboard Styles */
#user-dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.upcoming-events-redesign {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.events-title {
    text-align: center;
    font-size: 2.2em;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.events-subtitle {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.1em;
    margin: 0 0 30px 0;
}

/* Event Tabs */
.event-tabs-container {
    margin-bottom: 30px;
    border-bottom: 2px solid #f1f3f4;
}

.event-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding-bottom: 2px;
}

.event-tab {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #7f8c8d;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.event-tab:hover {
    color: #2c3e50;
    background: #f8f9fa;
}

.event-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: #f8f9ff;
}

/* Date Filter */
.date-filter-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.date-filter-container label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.date-filter {
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    color: #2c3e50;
    cursor: pointer;
    transition: border-color 0.3s ease;
    min-width: 200px;
}

.date-filter:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Tab Content */
.event-tab-content {
    display: none;
}

.event-tab-content.active {
    display: block;
}

/* Event Cards Grid */
.event-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

/* Event Card Redesign */
.event-card-redesign {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.event-card-redesign:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #667eea;
}

/* Card Header */
.card-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    position: relative;
}

.card-header h4 {
    margin: 0 0 10px 0;
    font-size: 1.4em;
    font-weight: 600;
}

.event-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.event-link:hover {
    opacity: 0.8;
    color: white;
}

.event-date-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    backdrop-filter: blur(10px);
}

/* Event Location */
.event-location {
    padding: 15px 20px 0 20px;
}

.location-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.location-link:hover {
    color: #c0392b;
    text-decoration: underline;
}

/* Event Description */
.event-description {
    padding: 15px 20px;
    color: #555;
    line-height: 1.6;
    font-size: 15px;
}

/* Ticket Options */
.ticket-options {
    padding: 0 20px 20px 20px;
}

.ticket-options h5 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
    border-bottom: 2px solid #f1f3f4;
    padding-bottom: 8px;
}

/* Ticket List */
.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.ticket-item:hover {
    background: #e3f2fd;
    border-color: #2196f3;
}

.ticket-info {
    flex: 1;
}

.ticket-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 5px;
}

.ticket-time {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.ticket-price {
    color: #27ae60;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.ticket-availability {
    font-size: 14px;
    font-weight: 500;
}

.ticket-availability.low {
    color: #e74c3c;
}

.ticket-availability.ok {
    color: #27ae60;
}

/* Ticket Action Buttons */
.ticket-action {
    margin-left: 15px;
}

.buy-ticket-btn {
    background: #233584;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.buy-ticket-btn:hover {
    background: #1a2a6b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(35, 53, 132, 0.3);
    color: white;
}

.sold-out-btn {
    background: #ccc;
    color: #666;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: not-allowed;
    font-size: 14px;
}

.no-tickets {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 0;
}

/* Responsive Design for Upcoming Events */
@media (max-width: 768px) {
    .upcoming-events-redesign {
        padding: 20px;
    }
    
    .event-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .event-tab {
        text-align: center;
        border-bottom: none;
        border-left: 3px solid transparent;
        border-radius: 6px;
    }
    
    .event-tab.active {
        border-left-color: #667eea;
        border-bottom: none;
    }
    
    .date-filter-container {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .date-filter {
        min-width: auto;
        width: 100%;
    }
    
    .event-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .ticket-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        text-align: center;
    }
    
    .ticket-action {
        margin-left: 0;
    }
}

/* ===== END NEW UPCOMING EVENTS STYLES ===== */

.qr-action-row {
    margin-top: 10px;
    flex-direction: column;
    align-items: flex-start;
}

.qr-btn {
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #d1d5db;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    float:right;
}

.qr-btn:hover {
    background: #e5e7eb;
    border-color: #cbd5e1;
}


.elementor-273 .elementor-element.elementor-element-71ba6ac:not(.elementor-motion-effects-element-type-background), .elementor-273 .elementor-element.elementor-element-71ba6ac > .elementor-motion-effects-container > .elementor-motion-effects-layer{
      background: #EF4444;
}
.elementor-273 .elementor-element.elementor-element-c929d41{
    color:#FFF;
}
.elementor-273 .elementor-element.elementor-element-2778441 .elementor-nav-menu--main .elementor-item{
     color:#FFF;
}
.elementor-283 .elementor-element.elementor-element-eea85c0{
    color:#FFF;
}
.elementor-283 .elementor-element.elementor-element-63cd828 .elementor-heading-title{
    font-family: "Roboto", Sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #FBBF24;
}
.elementor-283 .elementor-element.elementor-element-39323ba .elementor-nav-menu--main .elementor-item{
    color: #FFF;
    fill: #FFF;
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 5px;
    padding-bottom: 5px;
}
.elementor-283 .elementor-element.elementor-element-d3035d0 .elementor-heading-title{
        font-family: "Roboto", Sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #FBBF24;

}
.elementor-283 .elementor-element.elementor-element-e011da7{
     color: #FFF;
}
/* Header */


.welcome-section h1 {
    margin: 0 0 5px 0;
    font-size: 2.5em;
    font-weight: 300;
}

.site-info {
    margin: 0;
    opacity: 0.8;
    font-size: 1.1em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    text-align: right;
}

.current-user {
    font-size: 0.9em;
    opacity: 0.8;
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.logout-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Author information in cards */
.product-author,
.event-author {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.85em;
}

.author-label {
    color: #888;
    font-size: 0.9em;
}

.author-name {
    color: #2c3e50;
    font-weight: 500;
}

.activity-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.activity-author {
    font-size: 0.85em;
    color: #adb5bd;
    font-style: italic;
}

/* Stats Cards */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 2.5em;
    background: linear-gradient(135deg, #6c757d, #adb5bd); /* Gray gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-content h3 {
    margin: 0;
    font-size: 2.2em;
    font-weight: 700;
    color: #2c3e50;
}

.stat-content p {
    margin: 5px 0 0 0;
    color: #7f8c8d;
    font-size: 1.1em;
}

/* Navigation */
.dashboard-navigation {
    margin-bottom: 30px;
}

.tab-navigation {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    gap: 5px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn.active {
    background: linear-gradient(135deg, #6c757d, #adb5bd); /* Gray gradient */
    color: white;
    transform: scale(1.02);
}

.tab-btn:hover:not(.active) {
    background: linear-gradient(135deg, #6c757d, #adb5bd); /* Gray gradient */
    color: #333;
}

/* Content */
.tab-content {
    display: none !important;
}

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

.content-header {
    margin-bottom: 30px;
}

.content-header h2 {
    margin: 0 0 10px 0;
    font-size: 2.2em;
    color: #2c3e50;
    font-weight: 300;
}

.content-header p {
    margin: 0;
    color: #7f8c8d;
    font-size: 1.1em;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.action-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 2px solid transparent;
}

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.action-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.action-card h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.4em;
}

.action-card p {
    margin: 0;
    color: #7f8c8d;
}

/* Products and Events Grid */
.products-grid,
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.product-card,
.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.product-card:hover,
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-header,
.event-header {
    padding: 20px 20px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.product-header h3,
.event-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3em;
    flex: 1;
}

.product-actions,
.event-actions {
    display: flex;
    gap: 5px;
}

.btn-icon {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #7f8c8d;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: #f8f9fa;
    color: #495057;
}

.delete-btn:hover {
    background: #fee;
    color: #e74c3c;
}

.product-content,
.event-content {
    padding: 0 20px 20px 20px;
}

.product-content p,
.event-content p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.4em;
    font-weight: 700;
    color: #27ae60;
}

.sku {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #6c757d;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-date,
.event-location,
.event-price {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7f8c8d;
    font-size: 0.95em;
}

.product-footer,
.event-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

.status.published {
    background: #d4edda;
    color: #155724;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 500;
}

.date {
    color: #6c757d;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #6c757d, #adb5bd); /* Gray gradient */
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #5a6268;
    box-shadow: 0 4px 12px rgba(90, 98, 104, 0.25);
    transform: translateY(-1px);
}

.logout-btn {
    background-color: #666;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.logout-btn:hover {
    background-color: #4a4a4a;
}

.logout-btn .dashicons {
    margin-right: 6px;
}


/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;

}
.modal-dialog {
  max-width: 600px;
  width: 100%;
  
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
      max-height: 85vh;
  overflow-y: auto;

}

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

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5em;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #495057;
}

.modal form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Checkbox styling */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    color: #667eea;
    font-weight: 600;
}

.checkmark {
    flex: 1;
    font-size: 16px;
}

.form-help {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
    padding: 8px 12px;
    background: #fff3cd;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
}

.form-help.form-warning {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.form-help.form-warning a {
    color: #721c24;
    text-decoration: underline;
}

.form-help.form-warning a:hover {
    color: #dc3545;
}

.ticket-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Recent Activity */
.recent-activity {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.recent-activity h3 {
    margin: 0 0 25px 0;
    color: #2c3e50;
    font-size: 1.4em;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.activity-item:hover {
    background: #f8f9fa;
}

.activity-icon {
    font-size: 1.5em;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-content h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 1.1em;
}

.activity-content p {
    margin: 0 0 5px 0;
    color: #7f8c8d;
    line-height: 1.5;
}

.activity-date {
    font-size: 0.9em;
    color: #adb5bd;
}

/* Reports */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.report-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.report-card h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.3em;
}

.top-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.item-name {
    color: #2c3e50;
    font-weight: 500;
}

.item-value {
    color: #27ae60;
    font-weight: 600;
}

.upcoming-events {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.upcoming-event {
    padding: 15px;
    background: linear-gradient(135deg, #6c757d, #adb5bd); /* Gray gradient */
    color: white;
    border-radius: 8px;
}

.upcoming-event h4 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
}

.upcoming-event p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95em;
}

/* Reports Filters */
.reports-filters {
    display: flex;
    gap: 20px;
    align-items: end;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    min-width: 150px;
}

/* Attendees Modal */
.modal-large .modal-content {
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
}

.attendees-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.attendees-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 8px;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}

.attendees-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.attendees-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.attendees-table th,
.attendees-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.attendees-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.attendees-table tr:hover {
    background: #f8f9fa;
}

.checkin-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkin-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

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

.status-processing {
    background: #fff3cd;
    color: #856404;
}

/* QR Code Modal */
.qr-options {
    display: flex;
    gap: 15px;
    align-items: end;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.qr-display {
    text-align: center;
}

.qr-info {
    margin-bottom: 20px;
}

.qr-info h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 1.3em;
}

.qr-info p {
    margin: 0;
    color: #6c757d;
}

.qr-code-container {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border: 2px dashed #e9ecef;
    border-radius: 8px;
    display: inline-block;
}

.qr-code-container img {
    max-width: 300px;
    height: auto;
}

.qr-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.qr-instructions {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    margin-top: 20px;
}

.qr-instructions h5 {
    margin: 0 0 10px 0;
    color: #1976d2;
}

.qr-instructions ul {
    margin: 0;
    padding-left: 20px;
}

.qr-instructions li {
    margin-bottom: 5px;
    color: #424242;
}

/* Event attendees counter */
.event-attendees {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #667eea;
    font-weight: 500;
}

/* Report content */
#report-content {
    min-height: 200px;
    padding: 20px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.report-table th,
.report-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.report-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .reports-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .modal-large .modal-content {
        width: 98%;
        margin: 1% auto;
    }
    
    .attendees-stats {
        grid-template-columns: 1fr;
    }
    
    .qr-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .qr-actions {
        flex-direction: column;
    }
}
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    #user-dashboard-container {
        padding: 15px;
    }
    
    .dashboard-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #f7f7f7;
        padding: 14px 24px;
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-bottom: 20px;
        font-family: 'Segoe UI', sans-serif;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .welcome-section h1 {
        font-size: 2em;
    }
    
    .tab-navigation {
        flex-direction: column;
        gap: 5px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .products-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f7f7f7;
    padding: 14px 24px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dashboard-menu .menu-link {
    margin-right: 20px;
    color: #444;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.dashboard-menu .menu-link:hover {
    background-color: #e0e0e0;
    color: #222;
}

.logout-btn {
    background-color: #666;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.logout-btn:hover {
    background-color: #4a4a4a;
}

.logout-btn .dashicons {
    margin-right: 6px;
}

@media (max-height: 700px) {
    .modal-content {
        max-height: 80vh;
    }
}

.availability {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.availability.low {
    color: red;
}

.availability.ok {
    color: green;
}

/* ---- Today Section Container ---- */
.today-section {
    background: #f5fdff;
    border: 1px solid #cdeefc;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.today-header h2 {
    font-size: 28px;
    margin-bottom: 4px;
    color: #047786;
}

.today-header .subtitle {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
}

/* ---- Responsive Ticket Card Grid ---- */
.today-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* ---- Ticket Card Style ---- */
.ticket-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ticket-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.ticket-top h3 {
    font-size: 18px;
    margin: 0;
    line-height: 1.2;
}

.ticket-time {
    background: #e0f7fa;
    color: #047786;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

/* ---- Summary & Details ---- */
.ticket-middle {
    padding: 15px 20px;
    flex-grow: 1;
}

.summary {
    margin-bottom: 12px;
    color: #444;
}

.details {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #666;
}

.details li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

/* ---- Footer Buttons ---- */
.ticket-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.btn-view,
.btn-secondary {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-view {
    background: #047786;
    color: #fff;
}

.btn-view:hover {
    background: #035f61;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e2e2e2;
}

#detailsModal .modal-content {
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 15px;
}

#detailsModal .modal-header {
    border-bottom: 1px solid #dee2e6;
}

#detailsModal .modal-body p {
    margin-bottom: 8px;
}



/* Simplified Event Roster Styles */



@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.roster-summary .row {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.roster-summary .row > div {
    padding: 0 10px;
    margin-bottom: 0;
}

.summary-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.summary-number {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 5px;
    position: relative;
    line-height: 1;
}

.summary-label {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: 5px;
    line-height: 1.2;
}

/* Responsive Design for Summary Cards */
@media (max-width: 1200px) {
    .summary-card {
        padding: 18px 12px;
        height: 95px;
    }
    
    .summary-number {
        font-size: 24px;
    }
    
    .summary-label {
        font-size: 10px;
    }
}

@media (max-width: 992px) {
    .roster-summary .row > div {
        margin-bottom: 15px;
    }
    
    .summary-card {
        padding: 16px 10px;
        height: 85px;
    }
    
    .summary-number {
        font-size: 22px;
    }
    
    .summary-label {
        font-size: 9px;
    }
}

@media (max-width: 768px) {
    .roster-summary {
        padding: 20px;
    }
    
    .roster-summary .row {
        margin: 0 -5px;
    }
    
    .roster-summary .row > div {
        padding: 0 5px;
        margin-bottom: 10px;
    }
    
    .summary-card {
        padding: 15px 8px;
        height: 80px;
    }
    
    .summary-number {
        font-size: 20px;
    }
    
    .summary-label {
        font-size: 8px;
        letter-spacing: 0.3px;
    }
}

@media (max-width: 576px) {
    .roster-summary {
        padding: 15px;
    }
    
    .summary-card {
        padding: 12px 6px;
        height: 75px;
    }
    
    .summary-number {
        font-size: 18px;
    }
    
    .summary-label {
        font-size: 7px;
    }
}

/* Enhanced Export Buttons */
.export-buttons-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.btn-outline-primary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-info {
    border-width: 2px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.btn-outline-primary:hover::before,
.btn-outline-success:hover::before,
.btn-outline-danger:hover::before,
.btn-outline-info:hover::before {
    left: 100%;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.btn-outline-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.btn-outline-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.btn-outline-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.3);
}

/* Enhanced Table */
#event-roster-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: none;
}

#event-roster-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#event-roster-table thead th {
    padding: 20px 15px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

#event-roster-table thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

/* Enhanced Customer Row */
.customer-row {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    position: relative;
}

.customer-row:hover {
    background: linear-gradient(135deg, #e8f0ff 0%, #d6e8ff 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.customer-row td {
    padding: 20px 15px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.customer-info {
    position: relative;
}

.customer-info strong {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 4px;
}

.customer-info small {
    color: #667eea;
    font-size: 12px;
    font-weight: 500;
}

/* Enhanced Badges */
.badge {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.badge-secondary {
    background: linear-gradient(135deg, #8e9aaf 0%, #6c757d 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.badge-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.badge-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #212529;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

/* Enhanced Buttons */
.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-right: 8px;
    position: relative;
    overflow: hidden;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    border: none;
    color: white;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Enhanced DataTable Controls */
.dataTables_wrapper {
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.dataTables_filter {
    margin-bottom: 20px;
}

.dataTables_filter label {
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dataTables_filter input {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 300px;
}

.dataTables_filter input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.dataTables_info {
    color: #6c757d;
    font-size: 14px;
    margin-top: 20px;
    font-weight: 500;
}

.dataTables_paginate {
    margin-top: 20px;
}

.dataTables_paginate .paginate_button {
    padding: 10px 15px;
    margin: 0 3px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    color: #495057;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dataTables_paginate .paginate_button:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-1px);
}

.dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Enhanced Modal */
.modal {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    border-bottom: none;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Enhanced Attendees Modal */
.order-header {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    margin-bottom: 20px;
}

.order-header h5 {
    color: #667eea;
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.order-header p {
    margin: 8px 0;
    color: #495057;
    font-weight: 500;
}

.attendees-list table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.attendees-list th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    padding: 15px 12px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.attendees-list td {
    padding: 15px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f8f9fa;
}

.attendees-list tr:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
}

/* Code Styling */
code {
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 11px;
    font-weight: 600;
}

code.text-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 1px solid #ffeaa7;
}

code.text-success {
    background: linear-gradient(135deg, #d4edda 0%, #b8e6c1 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .roster-summary {
        padding: 20px;
    }
    
    .summary-card {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .summary-number {
        font-size: 28px;
    }
    
    .export-buttons-container {
        padding: 15px;
    }
    
    .btn-outline-primary,
    .btn-outline-success,
    .btn-outline-danger,
    .btn-outline-info {
        padding: 8px 16px;
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .customer-row td {
        padding: 15px 10px;
    }
    
    .dataTables_wrapper {
        padding: 15px;
    }
    
    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
    }
}

/* Loading Animation */
.loading-overlay {
    background: rgba(102, 126, 234, 0.9);
    backdrop-filter: blur(10px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Customer Row Styles - Updated for compact design */
.customer-row {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    font-weight: 500;
}

.customer-row td {
    padding: 15px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
}

.customer-row:hover {
    background: #e9ecef;
}

.customer-info strong {
    font-size: 16px;
    color: #212529;
    display: block;
}

.customer-info small {
    color: #6c757d;
    font-size: 12px;
    margin-top: 4px;
}

/* Button Groups */
.btn-group {
    display: flex;
    gap: 5px;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 11px;
    margin-right: 5px;
}

.btn-success {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    border-color: #1e7e34;
}

/* Attendees Modal Styles */
.attendees-modal {
    max-height: 500px;
    overflow-y: auto;
}

.order-header {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.order-header h5 {
    margin: 0 0 10px 0;
    color: #007bff;
}

.order-header p {
    margin: 5px 0;
    color: #495057;
}

.attendees-list {
    margin-top: 15px;
}

.attendees-list table {
    font-size: 14px;
}

.attendees-list th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 10px 8px;
    border-bottom: 2px solid #dee2e6;
}

.attendees-list td {
    padding: 10px 8px;
    vertical-align: middle;
    border-bottom: 1px solid #f8f9fa;
}

.attendees-list tr:hover {
    background: #f1f3f4;
}

/* Badge Styles - Enhanced */
.badge {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
    display: inline-block;
}

.badge-primary {
    background: #007bff;
    color: white;
}

.badge-secondary {
    background: #6c757d;
    color: white;
}

.badge-success {
    background: #28a745;
    color: white;
}

.badge-warning {
    background: #ffc107;
    color: #212529;
}

.badge-outline {
    background: transparent;
    color: #6c757d;
    border: 1px solid #6c757d;
}

/* Enhanced Modal */
.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Table improvements */
.table-sm {
    font-size: 13px;
}

.table-sm th,
.table-sm td {
    padding: 8px;
}

/* Status indicators */
.text-primary {
    color: #007bff !important;
}

.text-muted {
    color: #6c757d !important;
}

/* Badge Styles */
.badge {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
}

.badge-secondary {
    background: #6c757d;
    color: white;
}

.badge-primary {
    background: #007bff;
    color: white;
}

.badge-outline {
    background: transparent;
    color: #6c757d;
    border: 1px solid #6c757d;
}

/* Code Styles */
code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

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

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

/* Button Styles */
.btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 11px;
}

.btn-info {
    background: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
    border-color: #117a8b;
}

.btn-outline-info {
    background: transparent;
    border-color: #17a2b8;
    color: #17a2b8;
}

.btn-outline-info:hover {
    background: #17a2b8;
    color: white;
}

.btn-outline-primary {
    background: transparent;
    border-color: #007bff;
    color: #007bff;
}

.btn-outline-primary:hover {
    background: #007bff;
    color: white;
}

.btn-outline-success {
    background: transparent;
    border-color: #28a745;
    color: #28a745;
}

.btn-outline-success:hover {
    background: #28a745;
    color: white;
}

.btn-outline-danger {
    background: transparent;
    border-color: #dc3545;
    color: #dc3545;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: white;
}

/* DataTables Overrides */
.dataTables_wrapper {
    padding: 20px;
}

.dataTables_filter {
    margin-bottom: 20px;
}

.dataTables_filter label {
    font-weight: 500;
    color: #495057;
}

.dataTables_filter input {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 12px;
    margin-left: 8px;
    font-size: 14px;
}

.dataTables_filter input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.dataTables_info {
    color: #6c757d;
    font-size: 14px;
    margin-top: 15px;
}

.dataTables_paginate {
    margin-top: 15px;
}

.dataTables_paginate .paginate_button {
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: white;
    color: #495057;
    text-decoration: none;
}

.dataTables_paginate .paginate_button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.dataTables_paginate .paginate_button.current {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.dataTables_paginate .paginate_button.disabled {
    color: #6c757d;
    cursor: not-allowed;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1050;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background: #007bff;
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 20px;
}

.modal-body h5 {
    color: #007bff;
    margin-bottom: 15px;
    font-size: 16px;
}

.modal-body h6 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

.modal-body p {
    margin-bottom: 8px;
    color: #495057;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Loading Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .summary-card {
        margin-bottom: 10px;
    }
    
    #event-roster-table {
        font-size: 12px;
    }
    
    .customer-row td,
    .attendee-row td {
        padding: 8px;
    }
    
    .btn {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* Print Styles */
@media print {
    .btn, .dataTables_filter, .dataTables_paginate {
        display: none !important;
    }
    
    #event-roster-table {
        box-shadow: none;
    }
    
    .customer-row {
        border-left: 2px solid #000;
    }
    
    .attendee-row {
        border-left: 1px solid #ccc;
    }
}

/* Product Event Date Styling */
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.product-title-section {
    flex: 1;
}

.product-title-section h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.product-event-date {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 2px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-actions {
        align-self: flex-end;
    }
}



/* Event Roster Selected Event Info */
.selected-event-info {
    margin: 15px 0;
    padding: 0;
}

.event-info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.event-info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: scale(0.8) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
}

.event-info-card h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.event-info-card p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

/* Event Roster Header */
.roster-event-header {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.roster-event-header h3 {
    margin: 0 0 8px 0;
    color: #1c3faa;
    font-size: 22px;
    font-weight: 600;
}

.event-date-info {
    margin: 0;
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

/* Enhanced Event Roster Select */
#event-roster-select {
    font-size: 14px;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background: white;
    transition: all 0.3s ease;
}

#event-roster-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

#event-roster-select option {
    padding: 8px;
    font-size: 14px;
}

/* Summary Cards Enhancement */
.roster-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.summary-card {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.summary-number {
    font-size: 28px;
    font-weight: 700;
    color: #1c3faa;
    margin-bottom: 5px;
}

.summary-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .event-info-card {
        padding: 15px;
    }
    
    .event-info-card h4 {
        font-size: 18px;
    }
    
    .event-info-card p {
        font-size: 14px;
    }
    
    .roster-event-header {
        padding: 15px;
    }
    
    .roster-event-header h3 {
        font-size: 18px;
    }
}

/* Animation for showing/hiding selected event info */
.selected-event-info {
    animation: slideDown 0.3s ease-out;
}

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

/* Event Roster Export Buttons Styling */
.export-buttons-container {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.export-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.export-buttons .btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

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

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

.btn-outline-success {
    color: #198754;
    border-color: #198754;
    background-color: transparent;
}

.btn-outline-success:hover {
    color: #fff;
    background-color: #198754;
    border-color: #198754;
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
    background-color: transparent;
}

.btn-outline-danger:hover {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-info {
    color: #0dcaf0;
    border-color: #0dcaf0;
    background-color: transparent;
}

.btn-outline-info:hover {
    color: #000;
    background-color: #0dcaf0;
    border-color: #0dcaf0;
}

/* DataTables Button Styling */
.dataTables_wrapper .dt-buttons {
    display: none !important; /* Hide default DataTables buttons */
}

/* Roster Summary Cards */
.roster-summary {
    margin-bottom: 30px;
}

.summary-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    border: 1px solid #dee2e6;
}

.summary-number {
    font-size: 2rem;
    font-weight: bold;
    color: #1c3faa;
    margin-bottom: 5px;
}

.summary-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Event Roster Table */
#event-roster-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#event-roster-table th {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

#event-roster-table td {
    border: 1px solid #dee2e6;
    padding: 12px 8px;
    vertical-align: top;
    font-size: 14px;
}

#event-roster-table tbody tr:hover {
    background-color: #f8f9fa;
}

.customer-info strong {
    color: #1c3faa;
}

.customer-info .text-muted {
    color: #6c757d !important;
    font-size: 12px;
}

.product-name {
    font-weight: 600;
    color: #28a745;
}

.event-name {
    font-weight: 500;
    color: #17a2b8;
}

.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.badge-primary {
    color: #fff;
    background-color: #007bff;
}

.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.action-buttons .btn {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 3px;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

.btn-info {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
}

.btn-success {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Responsive Design */
@media (max-width: 768px) {
    .export-buttons {
        flex-direction: column;
    }
    
    .export-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .roster-summary .row {
        flex-direction: column;
    }
    
    .roster-summary .col-md-2 {
        margin-bottom: 10px;
    }
    
    #event-roster-table {
        font-size: 12px;
    }
    
    #event-roster-table th,
    #event-roster-table td {
        padding: 6px 4px;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1c3faa;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Filter Form Styling */
.event-roster-form {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    color: #495057;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1c3faa;
    box-shadow: 0 0 0 0.2rem rgba(28, 63, 170, 0.25);
}

.form-group .form-help {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

.form-group.full-width {
    width: 100%;
}

.btn-primary {
    color: #fff;
    background-color: #1c3faa;
    border-color: #1c3faa;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #1a3489;
    border-color: #1a3489;
}

/* Alert Styling */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}


/* Responsive Modal CSS - Add this to your dashboard.css or include in your template */

/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    overflow-y: auto; /* Allow scrolling on the overlay */
    padding: 20px 0; /* Add padding to prevent modal from touching edges */
}

/* Modal Content Container */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 20px auto;
    padding: 0;
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: calc(100vh - 40px); /* Ensure modal doesn't exceed viewport height */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, #4f7fff, #1c3faa);
    color: white;
    padding: 20px 24px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; /* Prevent header from shrinking */
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Modal Body - Scrollable Content */
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    max-height: calc(100vh - 200px); /* Adjust based on header and footer heights */
}

/* Form Styling */
.modal form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modal .form-group {
    margin-bottom: 20px;
}

.modal .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.modal .form-group input,
.modal .form-group select,
.modal .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.modal .form-group input:focus,
.modal .form-group select:focus,
.modal .form-group textarea:focus {
    outline: none;
    border-color: #4f7fff;
    box-shadow: 0 0 0 3px rgba(79, 127, 255, 0.1);
}

.modal .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.modal .form-group .form-help {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Form Row for Side-by-Side Fields */
.modal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

/* Checkbox Group Styling */
.modal .checkbox-group {
    margin: 20px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.modal .checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.modal .checkbox-wrapper input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
    transform: scale(1.2);
}

.modal .checkbox-label {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    margin: 0;
    flex: 1;
}

.modal .checkbox-text {
    font-weight: 500;
    color: #1c3faa;
    font-size: 14px;
}

.modal .checkbox-description {
    color: #6c757d;
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.4;
}

/* Form Actions */
.modal .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    margin-top: auto;
    flex-shrink: 0; /* Prevent footer from shrinking */
}

.modal .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 80px;
}

.modal .btn-primary {
    background: linear-gradient(135deg, #4f7fff, #1c3faa);
    color: white;
}

.modal .btn-primary:hover {
    background: linear-gradient(135deg, #3d6bff, #152c7a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 127, 255, 0.3);
}

.modal .btn-secondary {
    background: #6c757d;
    color: white;
}

.modal .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal {
        padding: 10px 0;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px auto;
        max-height: calc(100vh - 20px);
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 20px;
        max-height: calc(100vh - 160px);
    }
    
    .modal .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .modal .form-actions {
        padding: 16px 20px;
        flex-direction: column;
    }
    
    .modal .btn {
        width: 100%;
    }
    
    .modal .checkbox-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    
    .modal .checkbox-wrapper input[type="checkbox"] {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 5px 0;
    }
    
    .modal-content {
        width: 98%;
        margin: 5px auto;
        max-height: calc(100vh - 10px);
        border-radius: 8px;
    }
    
    .modal-header {
        padding: 14px 16px;
        border-radius: 8px 8px 0 0;
    }
    
    .modal-body {
        padding: 16px;
        max-height: calc(100vh - 130px);
    }
    
    .modal .form-group {
        margin-bottom: 16px;
    }
    
    .modal .form-actions {
        padding: 12px 16px;
        border-radius: 0 0 8px 8px;
    }
    
    .modal .checkbox-group {
        padding: 12px;
    }
}

/* Very Small Screens */
@media (max-height: 600px) {
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-body {
        max-height: calc(95vh - 120px);
    }
}

/* Custom Scrollbar for Modal Body */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Loading State */
.modal.loading .modal-content {
    opacity: 0.7;
    pointer-events: none;
}

/* Animation */
.modal {
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

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

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