/* ==========================================================================
   FRONTEND STYLES
   ========================================================================== */
.agenda-container {
    display: flex;
    gap: 30px;
    font-family: Arial, sans-serif;
    color: #333;
    max-width: 1200px;
    margin: 20px auto;
}

.agenda-main {
    flex: 3;
}

.agenda-sidebar {
    flex: 1;
}

.agenda-title {
    font-size: 24px;
    font-weight: bold;
    color: #1a2b48;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Weekly Nav */
.agenda-week-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    align-items: stretch;
}

.week-nav {
    background: #f8f9fa;
    border: 1px solid #eee;
    color: #1a2b48;
    cursor: pointer;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.week-nav:hover {
    background: #e9ecef;
    color: #C5A059;
}

.week-nav .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.agenda-day-btn {
    flex: 1;
    background: #fff;
    color: #333;
    text-align: center;
    padding: 15px 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.agenda-day-btn .day-name {
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
}

.agenda-day-btn .day-date {
    display: block;
    font-size: 18px;
    font-weight: bold;
}

.agenda-day-btn.active {
    background: #E2E2E2;
    color: #333;
    border-top: 5px solid #2A8446;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Activity Item Compact */
.agenda-item {
    display: flex;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 8px; /* Reducido de 12px */
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06); /* Sombra más suave */
    border-left: 6px solid #C5A059;
    min-height: 55px; /* Reducido de 70px */
    transition: transform 0.2s ease;
}

.agenda-item:hover {
    transform: translateY(-2px);
}

.agenda-time-block {
    background: #E2E2E2;
    min-width: 80px; /* Reducido de 100px */
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid #ddd;
}

.agenda-time {
    padding: 2px 5px; /* Reducido significativamente */
    font-size: 18px; /* Reducido de 24px */
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
}

.agenda-category-bar {
    background: #6C757D;
    color: white;
    font-size: 9px; /* Reducido de 10px */
    text-align: center;
    padding: 2px; /* Reducido de 4px */
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.agenda-content {
    flex: 1;
    padding: 8px 15px; /* Reducido de 20px 15px */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0; /* Sin gap para maximizar espacio */
}

.agenda-participants {
    font-size: 14px; /* Reducido de 15px */
    font-weight: 700;
    color: #1a2b48;
    line-height: 1;
    margin-bottom: 1px;
}

.agenda-asunto {
    font-size: 13px; /* Reducido de 16px */
    color: #444;
    line-height: 1.2;
}

.agenda-location {
    margin-top: 7px; /* Reducido */
    color: #777;
    font-size: 12px; /* Reducido de 14px */
    display: flex;
    align-items: center;
    gap: 4px; /* Reducido */
    font-weight: 500;
}

.agenda-image {
    width: 70px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agenda-image img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* Modal Styles */
.agenda-modal {
    display: none;
    position: fixed !important;
    z-index: 2147483647 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0,0,0,0.92) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.agenda-modal-content {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: 90% !important;
    max-height: 90% !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.agenda-modal-close {
    position: fixed !important;
    top: 20px !important;
    right: 30px !important;
    color: #fff !important;
    font-size: 50px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    z-index: 2147483647 !important;
}

/* Calendar Sidebar */
.agenda-sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.agenda-sidebar .agenda-title {
    background: #2A8446;
    color: white;
    padding: 12px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
    font-size: 18px;
    letter-spacing: 1px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
    max-width: 280px;
}

.calendar-nav {
    background: #f0f0f0;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #333;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-month-year {
    font-weight: bold;
    font-size: 16px;
    color: #1a2b48;
}

.calendar-table {
    width: auto;
    border-collapse: separate;
    border-spacing: 2px;
}

.calendar-table th {
    font-size: 11px;
    color: #999;
    padding: 10px 0;
    font-weight: bold;
    text-transform: uppercase;
    width: 40px;
    text-align: center;
}

.calendar-table td {
    text-align: center;
    font-size: 13px;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    color: #444;
}

.calendar-table td.today {
    border: 1px solid #2A8446;
    color: #1a2b48;
    font-weight: bold;
}

.calendar-table td.active-day {
    background: #6C757D !important;
    color: #FFF !important;
}

/* Today's Activities [agenda_hoy] */
.agenda-hoy-container {
    max-width: 1200px;
    margin: 20px auto;
}

.agenda-hoy-header {
    background: #E2E2E2;
    padding: 15px;
    font-size: 22px;
    font-weight: bold;
    color: #1a2b48;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 5px solid #C5A059;
}

.ver-agenda-completa {
    font-size: 16px;
    font-weight: bold;
    color: #1a2b48;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.ver-agenda-completa:hover {
    color: #C5A059;
}

/* Responsive */
@media (max-width: 768px) {
    .agenda-container {
        flex-direction: column;
    }
    .agenda-week-nav {
        overflow-x: auto;
    }
    .agenda-day-btn {
        min-width: 70px;
    }
}

/* ==========================================================================
   ADMIN STYLES
   ========================================================================== */
.agenda-meta-box-container { padding: 10px; }
.agenda-meta-row { display: flex; gap: 20px; margin-bottom: 15px; flex-wrap: wrap; }
.agenda-meta-field { flex: 1; min-width: 200px; }
.agenda-meta-field label { display: block; font-weight: bold; margin-bottom: 5px; }
.agenda-meta-field input[type="text"], 
.agenda-meta-field input[type="date"], 
.agenda-meta-field input[type="time"], 
.agenda-meta-field select { width: 100%; }
.full-width { width: 100%; }
.checkbox-field { display: flex; align-items: center; gap: 5px; }
.checkbox-field label { margin-bottom: 0; }
.agenda-image-upload-wrapper { display: flex; gap: 10px; align-items: center; }

/* Eliminar transparencia de Toastr */
#toast-container > div {
    opacity: 1 !important;
    box-shadow: 0 0 12px #000 !important;
}

/* Parsley Errors */
.parsley-errors-list {
    margin: 2px 0 3px;
    padding: 0;
    list-style-type: none;
    color: #d9534f;
    font-size: 0.9em;
    line-height: 0.9em;
}
.parsley-errors-list.filled {
    opacity: 1;
}
.parsley-error {
    border-color: #d9534f !important;
}
