/**
 * Tour Pricing Manager Styles
 * Version: 2.0.0
 * File: toursure-edit-program-003.css
 */

/* ========================================
   Container & Wrapper
   ======================================== */
.pricing-manager-wrapper-mjk729 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pricing-error-mjk729 {
    background: #fee;
    border: 1px solid #fcc;
    color: #c00;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    text-align: center;
}

/* ========================================
   Header Section
   ======================================== */
.pricing-header-mjk729 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.pricing-title-mjk729 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.edit-mode-badge-mjk729 {
    background: #4CAF50;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: normal;
}

.pricing-actions-mjk729 {
    display: flex;
    gap: 10px;
}

.btn-add-pricing-mjk729 {
    background: #0073aa !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.2);
}

.btn-add-pricing-mjk729:hover {
    background: #005a87 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}

/* ========================================
   Table Layout (Edit Mode)
   ======================================== */
.pricing-table-container-mjk729 {
    overflow-x: auto;
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.pricing-table-mjk729 {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.pricing-table-mjk729 thead {
    background: #f5f5f5;
}

.pricing-table-mjk729 th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    color: #555;
    font-size: 13px;
    border-bottom: 2px solid #ddd;
    white-space: nowrap;
}

.pricing-table-mjk729 td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.pricing-table-mjk729 tbody tr:hover {
    background: #f9f9f9;
}

.pricing-table-mjk729 tbody tr:last-child td {
    border-bottom: none;
}

/* Column widths */
.col-departure,
.col-return {
    width: 120px;
}

.col-price-adult,
.col-price-child {
    width: 140px;
}

.col-single {
    width: 100px;
}

.col-status {
    width: 100px;
}

.col-actions {
    width: 60px;
    text-align: center;
}

/* Input fields in table */
.pricing-table-mjk729 input[type="text"],
.pricing-table-mjk729 input[type="number"],
.pricing-table-mjk729 select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background: white;
    transition: border-color 0.3s ease;
}

.pricing-table-mjk729 input[type="text"]:focus,
.pricing-table-mjk729 input[type="number"]:focus,
.pricing-table-mjk729 select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* Datepicker fields */
.datepicker {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzIDJIMTFWMUMxMSAwLjQ0NzcxNSAxMC41NTIzIDAgMTAgMEM5LjQ0NzcyIDAgOSAwLjQ0NzcxNSA5IDFWMKG3VjFDNyAwLjQ0NzcxNSA2LjU1MjI4IDAgNiAwQzUuNDQ3NzIgMCA1IDAuNDQ3NzE1IDUgMVYySDNDMi40NDc3MiAyIDIgMi40NDc3MiAyIDNWMTNDMiAxMy41NTIzIDIuNDQ3NzIgMTQgMyAxNEgxM0MxMy41NTIzIDE0IDE0IDEzLjU1MjMgMTQgMTNWM0MxNCAyLjQ0NzcyIDEzLjU1MjMgMiAxMyAyWk0xMiAxMkg0VjVIMTJWMTJaIiBmaWxsPSIjOTk5Ii8+Cjwvc3ZnPg==');
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px !important;
    cursor: pointer;
}

/* Price input group */
.price-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.price-input-group input:first-child {
    font-weight: 600;
}

.price-input-group input:last-child {
    font-size: 12px;
    opacity: 0.8;
}

/* Discount badge */
.discount-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4444;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    z-index: 1;
}

/* Status select styling */
.booking-status-field-mjk729 {
    font-weight: 500;
}

.booking-status-field-mjk729 option[value="available"] {
    color: #4CAF50;
}

.booking-status-field-mjk729 option[value="almost_full"] {
    color: #FF9800;
}

.booking-status-field-mjk729 option[value="full"] {
    color: #f44336;
}

.booking-status-field-mjk729 option[value="waiting"] {
    color: #2196F3;
}

/* Row status classes */
.pricing-row-mjk729.status-almost_full {
    background: #fff8e1;
}

.pricing-row-mjk729.status-full {
    background: #ffebee;
}

.pricing-row-mjk729.status-full input,
.pricing-row-mjk729.status-full select {
    opacity: 0.7;
}

/* Delete button */
.btn-delete-pricing-mjk729 {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-pricing-mjk729:hover {
    background: #fee;
    border-color: #f44336;
    color: #f44336;
}

/* No data message */
.no-pricing-mjk729 {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
}

/* ========================================
   Pricing Notes Section
   ======================================== */
.pricing-notes-section-mjk729 {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.pricing-notes-section-mjk729 h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.pricing-notes-field-mjk729 {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    background: white;
}

.pricing-notes-field-mjk729:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* ========================================
   Card View (Display Mode)
   ======================================== */
.pricing-cards-container-mjk729 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.pricing-card-mjk729 {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pricing-card-mjk729:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-header-mjk729 {
    padding: 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dates-info {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.date-separator {
    margin: 0 5px;
    color: #999;
}

.status-badge-mjk729 {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge-mjk729.status-available {
    background: #e8f5e9;
    color: #4CAF50;
}

.status-badge-mjk729.status-almost_full {
    background: #fff3e0;
    color: #FF9800;
}

.status-badge-mjk729.status-full {
    background: #ffebee;
    color: #f44336;
}

.status-badge-mjk729.status-waiting {
    background: #e3f2fd;
    color: #2196F3;
}

.card-body-mjk729 {
    padding: 15px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.price-label {
    font-size: 14px;
    color: #666;
}

.price-original {
    text-decoration: line-through;
    color: #999;
    margin-right: 8px;
    font-size: 14px;
}

.price-current {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.seats-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seats-label {
    font-size: 14px;
    color: #666;
}

.seats-count {
    font-size: 16px;
    font-weight: 600;
    color: #4CAF50;
}

/* Pricing notes view */
.pricing-notes-view-mjk729 {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.pricing-notes-view-mjk729 h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.pricing-notes-view-mjk729 .notes-content {
    color: #666;
    line-height: 1.6;
}

/* ========================================
   Toast Notifications
   ======================================== */
.toast-container-mjk729 {
    position: fixed;
    top: 32px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.admin-bar .toast-container-mjk729 {
    top: 52px;
}

.toast-mjk729 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 400px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    pointer-events: all;
}

.toast-mjk729.show {
    transform: translateX(0);
}

.toast-icon-mjk729 {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.toast-mjk729.toast-success {
    border-left: 4px solid #4CAF50;
}

.toast-mjk729.toast-success .toast-icon-mjk729 {
    background: #4CAF50;
    color: white;
}

.toast-mjk729.toast-error {
    border-left: 4px solid #f44336;
}

.toast-mjk729.toast-error .toast-icon-mjk729 {
    background: #f44336;
    color: white;
}

.toast-mjk729.toast-info {
    border-left: 4px solid #2196F3;
}

.toast-mjk729.toast-info .toast-icon-mjk729 {
    background: #2196F3;
    color: white;
}

.toast-message-mjk729 {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.toast-close-mjk729 {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    transition: color 0.3s ease;
}

.toast-close-mjk729:hover {
    color: #333;
}

/* ========================================
   jQuery UI Datepicker Overrides
   ======================================== */
.ui-datepicker {
    font-size: 13px !important;
    width: 250px;
    background: white;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.ui-datepicker-header {
    background: #0073aa !important;
    border: none !important;
    border-radius: 4px 4px 0 0 !important;
}

.ui-datepicker-title {
    color: white !important;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    top: 5px !important;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.ui-datepicker td a {
    border: none !important;
    text-align: center;
    padding: 5px !important;
}

.ui-datepicker td a:hover {
    background: #f0f0f0 !important;
}

.ui-datepicker-current-day a {
    background: #0073aa !important;
    color: white !important;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .pricing-table-container-mjk729 {
        overflow-x: scroll;
    }

    .pricing-table-mjk729 {
        min-width: 800px;
    }
}

@media (max-width: 768px) {
    .pricing-header-mjk729 {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .btn-add-pricing-mjk729 {
        width: 100%;
        justify-content: center;
    }

    .pricing-cards-container-mjk729 {
        grid-template-columns: 1fr;
    }

    .toast-container-mjk729 {
        left: 10px;
        right: 10px;
    }

    .toast-mjk729 {
        min-width: auto;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .pricing-manager-wrapper-mjk729 {
        padding: 15px;
    }

    .pricing-table-mjk729 {
        font-size: 12px;
    }

    .pricing-table-mjk729 input,
    .pricing-table-mjk729 select {
        font-size: 12px;
        padding: 4px 6px;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .pricing-actions-mjk729,
    .btn-delete-pricing-mjk729,
    .toast-container-mjk729,
    .edit-mode-badge-mjk729 {
        display: none !important;
    }

    .pricing-card-mjk729 {
        page-break-inside: avoid;
        border: 1px solid #000;
    }

    .pricing-table-mjk729 {
        border: 1px solid #000;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   Accessibility
   ======================================== */
.pricing-table-mjk729:focus-within {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.btn-add-pricing-mjk729:focus,
.btn-delete-pricing-mjk729:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .pricing-table-mjk729,
    .pricing-card-mjk729 {
        border-width: 2px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .pricing-card-mjk729,
    .toast-mjk729,
    button {
        transition: none;
    }
}
