/* ===================================
   Restaurant Booking System - Frontend Styles
   Kin Kin Kin Engadine Theme
   =================================== */

/* --- Container & Layout --- */
.rb-booking-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.03) 0%, rgba(205, 133, 63, 0.03) 100%);
}

.rb-booking-form-wrapper {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(139, 69, 19, 0.15);
    padding: 50px;
    border: 1px solid rgba(205, 133, 63, 0.1);
    position: relative;
    overflow: hidden;
}

.rb-booking-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #8B4513 0%, #CD853F 50%, #D2691E 100%);
}

.rb-form-title {
    font-size: 36px;
    font-weight: 700;
    color: #8B4513;
    margin: 0 0 15px 0;
    text-align: center;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 20px;
}

.rb-form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #CD853F, transparent);
}

/* --- Form Sections --- */
.rb-form-section {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border-radius: 15px;
    border: 1px solid rgba(205, 133, 63, 0.15);
    transition: all 0.3s ease;
}

.rb-form-section:hover {
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.1);
    transform: translateY(-2px);
}

.rb-section-title {
    font-size: 22px;
    font-weight: 600;
    color: #8B4513;
    margin: 0 0 20px 0;
    padding-left: 15px;
    border-left: 4px solid #CD853F;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: 0.5px;
}

.rb-section-description {
    color: #6b5b47;
    font-size: 14px;
    margin: -10px 0 20px 0;
    font-style: italic;
}

/* --- Form Elements --- */
.rb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.rb-form-group {
    margin-bottom: 25px;
}

.rb-form-group label {
    display: block;
    font-weight: 600;
    color: #5d4e37;
    margin-bottom: 10px;
    font-size: 15px;
    font-family: 'Georgia', serif;
}

.rb-form-group .required {
    color: #CD853F;
    font-size: 18px;
}

.rb-input,
.rb-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8dcc4;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #ffffff;
    color: #3e3226;
}

.rb-input:focus,
.rb-textarea:focus {
    outline: none;
    border-color: #CD853F;
    box-shadow: 0 0 0 4px rgba(205, 133, 63, 0.1);
    background: #fffdf7;
}

.rb-input:hover,
.rb-textarea:hover {
    border-color: #D2B48C;
}

.rb-textarea {
    resize: vertical;
    font-family: inherit;
    min-height: 120px;
}

/* --- Menu Selection --- */
.rb-menu-container {
    background: linear-gradient(135deg, #faf8f3 0%, #ffffff 100%);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(205, 133, 63, 0.2);
}

.rb-menu-category {
    margin-bottom: 35px;
}

.rb-menu-category:last-child {
    margin-bottom: 0;
}

.rb-category-title {
    font-size: 20px;
    font-weight: 600;
    color: #8B4513;
    margin: 0 0 20px 0;
    padding: 12px 20px;
    background: linear-gradient(90deg, rgba(205, 133, 63, 0.15), transparent);
    border-left: 4px solid #CD853F;
    border-radius: 0 8px 8px 0;
    font-family: 'Georgia', serif;
    letter-spacing: 0.5px;
}

.rb-menu-items {
    display: grid;
    gap: 15px;
}

.rb-menu-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #e8dcc4;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.rb-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(205, 133, 63, 0.05), transparent);
    transition: left 0.5s ease;
}

.rb-menu-item:hover {
    border-color: #CD853F;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.12);
    transform: translateY(-3px);
}

.rb-menu-item:hover::before {
    left: 100%;
}

.rb-menu-info {
    flex: 1;
}

.rb-menu-name {
    font-weight: 600;
    color: #5d4e37;
    font-size: 17px;
    margin-bottom: 8px;
    font-family: 'Georgia', serif;
}

.rb-menu-desc {
    color: #6b5b47;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.rb-menu-price {
    color: #CD853F;
    font-weight: 700;
    font-size: 18px;
    font-family: 'Georgia', serif;
}

.rb-menu-quantity {
    margin-left: 20px;
}

.rb-quantity-input {
    width: 80px;
    padding: 10px 12px;
    border: 2px solid #e8dcc4;
    border-radius: 8px;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #5d4e37;
    background: #fffdf7;
    transition: all 0.3s ease;
}

.rb-quantity-input:focus {
    outline: none;
    border-color: #CD853F;
    box-shadow: 0 0 0 3px rgba(205, 133, 63, 0.15);
}

.rb-quantity-input:hover {
    border-color: #D2B48C;
}

/* --- Submit Button --- */
.rb-submit-wrapper {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(205, 133, 63, 0.2);
}

.rb-submit-btn {
    background: linear-gradient(135deg, #8B4513 0%, #CD853F 50%, #D2691E 100%);
    background-size: 200% auto;
    color: #ffffff;
    border: none;
    padding: 18px 60px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
    position: relative;
    overflow: hidden;
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.rb-submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.rb-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(139, 69, 19, 0.4);
    background-position: right center;
}

.rb-submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.rb-submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
}

.rb-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.rb-submit-btn:disabled:hover {
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
}

/* --- Messages --- */
.rb-message {
    margin: 25px 0;
    padding: 20px 25px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 15px;
    border-left: 5px solid;
    animation: slideIn 0.4s ease-out;
}

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

.rb-message.rb-success {
    background: linear-gradient(135deg, #f0f8f0, #ffffff);
    color: #2d5016;
    border-left-color: #CD853F;
    box-shadow: 0 4px 15px rgba(205, 133, 63, 0.15);
}

.rb-message.rb-error {
    background: linear-gradient(135deg, #fff5f5, #ffffff);
    color: #721c24;
    border-left-color: #D2691E;
    box-shadow: 0 4px 15px rgba(210, 105, 30, 0.15);
}

/* ===================================
   My Bookings Page
   =================================== */

.rb-my-bookings-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.rb-page-title {
    font-size: 38px;
    font-weight: 700;
    color: #8B4513;
    margin: 0 0 40px 0;
    text-align: center;
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 20px;
}

.rb-page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #CD853F, transparent);
}

/* --- Notices --- */
.rb-notice {
    background: #fff;
    border-left: 5px solid;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.rb-notice-info {
    border-color: #CD853F;
    background: linear-gradient(135deg, #fffdf7, #ffffff);
    color: #5d4e37;
}

.rb-notice-warning {
    border-color: #D2691E;
    background: linear-gradient(135deg, #fff8f0, #ffffff);
    color: #7d4e1f;
}

.rb-notice p {
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.rb-notice p:last-child {
    margin-bottom: 0;
}

/* --- Booking Cards --- */
.rb-bookings-list {
    display: grid;
    gap: 25px;
}

.rb-booking-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(139, 69, 19, 0.1);
    overflow: hidden;
    border-left: 6px solid;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.rb-booking-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8B4513, #CD853F, #D2691E);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rb-booking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(139, 69, 19, 0.15);
}

.rb-booking-card:hover::before {
    opacity: 1;
}

.rb-booking-card.rb-status-pending {
    border-left-color: #D2691E;
}

.rb-booking-card.rb-status-approved {
    border-left-color: #CD853F;
}

.rb-booking-card.rb-status-rejected {
    border-left-color: #8B4513;
}

.rb-booking-card.rb-status-cancelled {
    border-left-color: #9e8b7b;
}

/* --- Card Header --- */
.rb-booking-header {
    background: linear-gradient(135deg, #faf8f3 0%, #f5f1e8 100%);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(205, 133, 63, 0.15);
}

.rb-booking-id {
    font-size: 17px;
    color: #5d4e37;
    font-weight: 600;
    font-family: 'Georgia', serif;
}

/* --- Card Body --- */
.rb-booking-body {
    padding: 30px;
}

.rb-booking-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.rb-info-item {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #fafafa, #ffffff);
    border-radius: 10px;
    border: 1px solid rgba(205, 133, 63, 0.1);
    transition: all 0.3s ease;
}

.rb-info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.08);
    border-color: rgba(205, 133, 63, 0.3);
}

.rb-info-label {
    font-size: 13px;
    color: #6b5b47;
    margin-bottom: 8px;
    font-weight: 500;
}

.rb-info-value {
    font-size: 17px;
    font-weight: 600;
    color: #5d4e37;
    font-family: 'Georgia', serif;
}

/* --- Menu & Notes --- */
.rb-booking-menu,
.rb-booking-notes,
.rb-admin-notes {
    margin-top: 25px;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid;
}

.rb-booking-menu {
    background: linear-gradient(135deg, #faf8f3, #ffffff);
    border-left-color: #CD853F;
}

.rb-booking-notes {
    background: linear-gradient(135deg, #fffdf7, #ffffff);
    border-left-color: #D2691E;
}

.rb-admin-notes {
    background: linear-gradient(135deg, #f0f8f0, #ffffff);
    border-left-color: #8B4513;
}

.rb-booking-menu h4,
.rb-booking-notes h4,
.rb-admin-notes h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #5d4e37;
    font-family: 'Georgia', serif;
}

.rb-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rb-menu-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(205, 133, 63, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rb-menu-list li:last-child {
    border-bottom: none;
}

.rb-menu-item-name {
    color: #5d4e37;
    font-weight: 500;
}

.rb-menu-item-qty {
    color: #CD853F;
    font-weight: 600;
    font-family: 'Georgia', serif;
}

/* --- Card Footer --- */
.rb-booking-footer {
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
    padding: 18px 30px;
    border-top: 1px solid rgba(205, 133, 63, 0.15);
}

.rb-booking-date {
    color: #6b5b47;
    font-size: 13px;
    font-style: italic;
}

/* --- Status Labels --- */
.rb-label {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Georgia', serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rb-label-warning {
    background: linear-gradient(135deg, #fff8f0, #ffe8d6);
    color: #8B4513;
    border: 1px solid #D2691E;
}

.rb-label-success {
    background: linear-gradient(135deg, #f0f8f0, #e6f4ea);
    color: #5d4e37;
    border: 1px solid #CD853F;
}

.rb-label-danger {
    background: linear-gradient(135deg, #fff5f5, #ffe6e6);
    color: #721c24;
    border: 1px solid #8B4513;
}

.rb-label-secondary {
    background: linear-gradient(135deg, #f5f5f5, #eeeeee);
    color: #5d4e37;
    border: 1px solid #9e8b7b;
}

/* --- Button --- */
.rb-button {
    display: inline-block;
    background: linear-gradient(135deg, #8B4513 0%, #CD853F 100%);
    color: #ffffff !important;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Georgia', serif;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.25);
}

.rb-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.35);
    background: linear-gradient(135deg, #CD853F 0%, #8B4513 100%);
}

/* ===================================
   Responsive Design
   =================================== */

@media screen and (max-width: 768px) {
    .rb-booking-form-wrapper {
        padding: 30px 25px;
    }
    
    .rb-form-title {
        font-size: 28px;
    }
    
    .rb-form-section {
        padding: 20px;
    }
    
    .rb-form-row {
        grid-template-columns: 1fr;
    }
    
    .rb-booking-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .rb-menu-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rb-menu-quantity {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }
    
    .rb-quantity-input {
        width: 100%;
    }
    
    .rb-submit-btn {
        width: 100%;
        padding: 16px 40px;
    }
}

@media screen and (max-width: 480px) {
    .rb-booking-container {
        padding: 20px 15px;
    }
    
    .rb-booking-form-wrapper {
        padding: 25px 20px;
    }
    
    .rb-form-title {
        font-size: 24px;
    }
    
    .rb-section-title {
        font-size: 18px;
    }
    
    .rb-booking-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .rb-booking-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .rb-info-item {
        text-align: left;
        padding: 12px 15px;
    }
    
    .rb-menu-container {
        padding: 20px 15px;
    }
    
    .rb-menu-name {
        font-size: 15px;
    }
    
    .rb-menu-desc {
        font-size: 12px;
    }
}

/* ===================================
   Additional Enhancements
   =================================== */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: rgba(205, 133, 63, 0.3);
    color: #5d4e37;
}

::-moz-selection {
    background: rgba(205, 133, 63, 0.3);
    color: #5d4e37;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #faf8f3;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #CD853F, #8B4513);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8B4513, #CD853F);
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 3px solid rgba(205, 133, 63, 0.5);
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.rb-loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rb-form-section,
.rb-booking-card {
    animation: fadeIn 0.6s ease-out;
}

.rb-form-section:nth-child(1) { animation-delay: 0.1s; }
.rb-form-section:nth-child(2) { animation-delay: 0.2s; }
.rb-form-section:nth-child(3) { animation-delay: 0.3s; }
.rb-form-section:nth-child(4) { animation-delay: 0.4s; }

/* Shimmer Effect for Premium Feel */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.rb-submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    pointer-events: none;
}
