/**
 * Boek-nu WordPress Theme Integration Styles
 * Integreert met Ireca WordPress theme en vult ontbrekende custom classes aan
 * 
 * @package     ThivaRental
 * @subpackage  Boek-nu
 * @version     1.0
 * @author      ThivaRental Development
 */

/* ============================================================
   LAYOUT & CONTAINER OVERRIDES
   ============================================================ */

/* Override WordPress container for booking pages */
.booking-container {
    max-width: 1140px;
    margin: 2rem auto;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .booking-container {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* ============================================================
   ADMIN INTERFACE STYLES
   ============================================================ */

.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    margin: -2.5rem -2.5rem 2rem -2.5rem;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admin-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    color: white;
    border-bottom: none;
    padding-bottom: 0;
}

.admin-header p {
    margin: 0.5rem 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Admin Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

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

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

/* Admin Tables */
.bookings-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.bookings-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bookings-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.bookings-table tbody tr:hover {
    background-color: #f9fafb;
}

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

.action-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.action-links a {
    font-size: 0.875rem;
    text-decoration: none;
    color: #667eea;
    font-weight: 500;
    transition: color 0.2s ease;
}

.action-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Filter Bar */
.filter-bar {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar select,
.filter-bar input {
    flex: 1;
    min-width: 150px;
}

/* ============================================================
   INFO CARDS & DETAILS DISPLAY
   ============================================================ */

.info-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    opacity: 0.9;
    font-size: 0.9rem;
}

.info-value {
    font-weight: 500;
    text-align: right;
}

.info-text {
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.info-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 1rem;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.info-box strong {
    display: block;
    margin-bottom: 0.5rem;
}

/* ============================================================
   BOOKING FORM SPECIFIC STYLES
   ============================================================ */

.booking-form {
    margin-top: 2rem;
}

.booking-summary {
    background: #f0f9ff;
    border: 2px solid #3b82f6;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.booking-summary h3 {
    margin-top: 0;
    color: #1e40af;
}

.booking-details {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.details-table {
    width: 100%;
    margin: 1rem 0;
}

.details-table tr {
    border-bottom: 1px solid #e5e7eb;
}

.details-table tr:last-child {
    border-bottom: none;
}

.details-table td {
    padding: 0.75rem 0;
}

.details-table td:first-child {
    font-weight: 600;
    color: #4b5563;
    width: 40%;
}

/* Radio Button Groups */
.radio-group {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.radio-option {
    flex: 1;
    min-width: 200px;
}

.radio-option input[type="radio"] {
    margin-right: 0.5rem;
}

.radio-content {
    background: #f9fafb;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option input[type="radio"]:checked + .radio-content {
    border-color: #3b82f6;
    background: #eff6ff;
}

.radio-content:hover {
    border-color: #93c5fd;
}

/* ============================================================
   STATUS BADGES
   ============================================================ */

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-confirmed {
    background-color: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-completed {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-paid {
    background-color: #d1fae5;
    color: #065f46;
}

.status-unpaid {
    background-color: #fef3c7;
    color: #92400e;
}

/* ============================================================
   PAYMENT SECTION
   ============================================================ */

.payment-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.payment-section h2,
.payment-section h3 {
    color: white;
}

.payment-section .amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.payment-history {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.payment-history h3 {
    margin-top: 0;
    color: #1f2937;
}

/* ============================================================
   DOCUMENT UPLOAD STYLES
   ============================================================ */

.booking-info {
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.booking-info p {
    margin: 0.5rem 0;
}

.upload-section {
    margin: 2rem 0;
}

.upload-group {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 2px dashed #d1d5db;
}

.upload-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #1f2937;
}

.file-input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.file-input-wrapper input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.file-input-wrapper input[type="file"]:hover {
    border-color: #3b82f6;
}

.file-input-wrapper input[type="file"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ============================================================
   PRICE DISPLAY
   ============================================================ */

.price-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.price-summary h3 {
    margin-top: 0;
    color: white;
}

.price-table {
    width: 100%;
    margin-top: 1rem;
}

.price-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.price-table tr:last-child {
    border-bottom: none;
}

.price-table td {
    padding: 0.75rem 0;
}

.price-table td:last-child {
    text-align: right;
    font-weight: 600;
}

.total-row {
    font-size: 1.25rem;
    font-weight: 700;
    border-top: 2px solid rgba(255, 255, 255, 0.4);
    margin-top: 0.5rem;
}

.total-row td {
    padding-top: 1rem;
}

/* ============================================================
   NOTES & HELPERS
   ============================================================ */

.note {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    font-size: 0.9375rem;
}

.note strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #92400e;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.terms-link {
    color: #3b82f6;
    text-decoration: underline;
    font-weight: 500;
}

.terms-link:hover {
    color: #1e40af;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.checkbox-label:hover {
    background: #ffe69c;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.required {
    color: #dc2626;
    font-weight: 700;
}

.last-updated {
    color: #6b7280;
    font-size: 0.875rem;
    font-style: italic;
    margin: 0.5rem 0 2rem;
}

/* ============================================================
   WORDPRESS THEME INTEGRATION HELPERS
   ============================================================ */

/* Ensure proper spacing with WordPress container */
.wrap_default_heading_page + .container {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* Breadcrumb styling override */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6b7280;
}

/* WordPress menu compatibility */
.navbar-brand .blogname {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

/* Footer widget areas */
.footer .top,
.footer .bottom {
    padding: 2rem 0;
}

.footer .top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header visibility helpers */
.desktop {
    display: block !important;
}

.mobile {
    display: none !important;
}

@media (max-width: 992px) {
    .desktop {
        display: none !important;
    }
    
    .mobile {
        display: block !important;
    }
}

/* Ensure mobile responsiveness */
@media (max-width: 992px) {
    .ovamenu_shrink {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .radio-group {
        flex-direction: column;
    }
    
    .radio-option {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .action-links {
        flex-direction: column;
    }
    
    .filter-bar {
        flex-direction: column;
    }
    
    .filter-bar select,
    .filter-bar input {
        width: 100%;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .button-group .btn {
        width: 100%;
    }
    
    .admin-header {
        margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    }
}

@media (max-width: 576px) {
    .payment-section .amount {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .details-table td:first-child {
        width: 50%;
        font-size: 0.875rem;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {
    .admin-header,
    .filter-bar,
    .action-links,
    .button-group,
    .form-actions {
        display: none;
    }
    
    .booking-container {
        box-shadow: none;
        padding: 0;
    }
    
    .info-card,
    .payment-section {
        background: white;
        color: black;
        border: 1px solid #e5e7eb;
    }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

/* Focus states */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #3b82f6;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .info-card,
    .payment-section,
    .price-summary {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
