/* El Almacén - Agenda Frontend Styles | Version: 1.8.1 */

.wprb-agenda {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.wprb-agenda h2 {
    font-size: 1.5rem;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Date Group */
.agenda-date-group {
    margin-bottom: 30px;
}

.agenda-date-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}

/* Event Item */
.agenda-event {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: none;
    /* Default accent */
}

.agenda-event:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Time Column */
.agenda-time {
    flex: 0 0 120px;
    font-size: 0.95rem;
    color: #555;
    font-weight: 600;
    display: flex;
    flex-direction: column;
}

.agenda-time span {
    line-height: 1.2;
}

/* Content Column */
.agenda-details {
    flex: 1;
    padding-left: 15px;
}

.agenda-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
    display: block;
}

.agenda-room {
    font-size: 0.85rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.agenda-room::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
    margin-right: 6px;
}

/* Responsive */
@media (max-width: 600px) {
    .agenda-event {
        flex-direction: column;
        align-items: flex-start;
    }

    .agenda-time {
        flex: 0 0 auto;
        margin-bottom: 8px;
        flex-direction: row;
        gap: 10px;
    }

    .agenda-details {
        padding-left: 0;
    }
}

/* --- BOOKING FORM & DASHBOARD COMMON STYLES --- */

/* Steps & Grid */
.wprb-front-step {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
}

.wprb-room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.wprb-room-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    background: #fff;
    transition: all 0.2s;
}

.wprb-room-card.available {
    border-color: #46b450;
    background: #f0f9f1;
}

.wprb-room-card.conflict {
    border-color: #dc3232;
    background: #fcf0f1;
    opacity: 0.8;
}

.wprb-room-card.selected {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px #2271b1;
    transform: scale(1.02);
}

.wprb-room-info {
    font-size: 12px;
    color: #666;
}

/* Feedback */
.wprb-feedback {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
}

.wprb-feedback.error {
    background: #fce4e4;
    color: #c00;
}

.wprb-feedback.success {
    background: #eeffee;
    color: #090;
}

/* Modal Styles */
.wprb-modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wprb-modal-overlay.show {
    display: flex;
    opacity: 1;
    align-items: flex-start;
    /* Changed from center to lower it */
    justify-content: center;
    padding-top: 100px;
    /* Adjust vertical position */
}

.wprb-modal-content {
    background-color: #fefefe;
    margin: 0 auto;
    /* Removed vertical auto margin */
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: wprbSlideDown 0.3s ease;
}

@keyframes wprbSlideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wprb-modal-header {
    padding: 15px 20px;
    background-color: #f8d7da;
    color: #721c24;
    border-bottom: 1px solid #f5c6cb;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wprb-modal-header.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-bottom: 1px solid #bee5eb;
}

.wprb-modal-body {
    padding: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.wprb-modal-footer {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.wprb-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
}

.wprb-btn-cancel {
    background-color: #e2e6ea;
    color: #212529;
}

.wprb-btn-cancel:hover {
    background-color: #dae0e5;
}

.wprb-btn-confirm {
    background-color: #dc3545;
    color: white;
}

.wprb-btn-confirm:hover {
    background-color: #c82333;
}

/* Dashboard Table */
.wprb-my-bookings .wprb-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.wprb-my-bookings .wprb-table th,
.wprb-my-bookings .wprb-table td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.wprb-my-bookings .wprb-table th {
    background-color: #f7f7f7;
    font-weight: 600;
}

.wprb-btn-small {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
    border: 1px solid #ccc;
    background: #fff;
}

.wprb-btn-small:hover {
    background: #eee;
}

.wprb-status-publish {
    color: green;
    font-weight: bold;
}

.wprb-status-draft {
    color: orange;
}

/* Series Groups */
.wprb-series-group {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}

.wprb-series-header {
    background: #f0f6fc;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-bottom: 1px solid transparent;
}

.wprb-series-header:hover {
    background: #eef3f7;
}

.wprb-series-group.open .wprb-series-header {
    border-bottom: 1px solid #ddd;
}

.wprb-series-title {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wprb-series-items {
    display: none;
    background: #fff;
}

.wprb-series-items .wprb-table {
    margin-top: 0;
    border: none;
}

.wprb-series-items .wprb-table td {
    border-bottom: 1px solid #eee;
}

.wprb-series-items .wprb-table tr:last-child td {
    border-bottom: none;
}

/* Button Small */
.wprb-btn-small {
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid #ccc;
    background: transparent;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.wprb-edit-btn {
    color: #2271b1 !important;
    border-color: #2271b1 !important;
}

.wprb-edit-btn:hover {
    background: #f0f6fc !important;
}

.wprb-edit-series-btn {
    color: #2271b1 !important;
    border-color: #2271b1 !important;
}

.wprb-edit-series-btn:hover {
    background: #f0f6fc !important;
}

.wprb-cancel-btn,
.wprb-cancel-series-btn {
    color: #d63638 !important;
    border-color: #d63638 !important;
}

.wprb-cancel-btn:hover,
.wprb-cancel-series-btn:hover {
    background: #fcf0f1 !important;
}


/* Modal Form */
#wprb-edit-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: #444;
    font-size: 13px;
}

#wprb-edit-form input[type=text],
#wprb-edit-form input[type=date],
#wprb-edit-form input[type=time],
#wprb-edit-form input[type=number],
#wprb-edit-form select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    margin-bottom: 5px;
}

#wprb-edit-form input:focus,
#wprb-edit-form select:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

/* --- Registration Activities Carousel --- */
.wprb-inscripciones-carousel-container {
    margin: 40px 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.wprb-carousel-title {
    font-size: 24px;
    font-weight: 500;
    color: #666;
    margin-bottom: 30px;
    text-align: left;
}

.wprb-swiper-wrapper {
    position: relative;
    padding: 0 60px; /* Increased space for arrows */
}

.wprb-activity-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wprb-activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.wprb-card-image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4; /* Vertical aspect ratio for posters */
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.wprb-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.wprb-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.wprb-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wprb-card-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.wprb-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wprb-meta-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #888;
}

.wprb-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.wprb-card-deadline {
    font-size: 13px;
    color: #888;
    margin: 0 0 20px 0;
}

.wprb-card-action {
    margin-top: auto;
}

.wprb-enroll-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 15px;
    border: 1px solid #e53e3e;
    color: #e53e3e;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.wprb-enroll-button:hover {
    background: #e53e3e;
    color: #fff;
}

/* Swiper navigation buttons colors and sizes are now in the CSS below */

.wprb-recurring-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    animation: wprbFadeIn 0.5s ease-out;
}

.wprb-recurring-badge span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #444;
}

.wprb-recurring-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #e53e3e; /* Match brand red */
}

@keyframes wprbFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Swiper Navigation */
.wprb-swiper-button-prev,
.wprb-swiper-button-next {
    width: 44px !important;
    height: 44px !important;
    border: 2px solid #e53e3e !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #e53e3e !important;
    transition: all 0.2s ease;
    z-index: 10;
}

.wprb-swiper-button-prev:after,
.wprb-swiper-button-next:after {
    font-size: 18px !important;
    font-weight: bold !important;
}

.wprb-swiper-button-prev {
    left: 0px !important;
}

.wprb-swiper-button-next {
    right: 0px !important;
}

.wprb-swiper-button-prev:hover,
.wprb-swiper-button-next:hover {
    background: #e53e3e !important;
    color: #fff !important;
}

@media (max-width: 1024px) {
    .wprb-swiper-wrapper {
        padding: 0 50px;
    }
}

@media (max-width: 768px) {
    .wprb-swiper-wrapper {
        padding: 0 45px;
    }
    .wprb-carousel-title {
        font-size: 20px;
        margin-left: 10px;
    }
}

/* Fix for Swiper button horizontal positioning */
.wprb-enrollment-swiper {
    padding: 5px 0 15px 0;
}

.swiper-wrapper {
    display: flex !important;
    align-items: stretch !important;
}

.swiper-slide {
    height: auto !important;
    display: flex !important;
}