/* AndreCode Front-end Calendar Styles */

#andrecode-calendar-wrapper {
    font-family: inherit;
}

/* Banner Header (Matching admin mockup green theme) */
.and-cal-banner-header {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    padding: 18px 20px;
}

.and-cal-banner-title {
    color: #ffffff !important;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.and-cal-banner-subtitle {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.9rem;
}

/* Controls Bar */
.and-cal-controls-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.and-view-switcher .and-view-btn {
    border: 1px solid #ced4da;
    background: #ffffff;
    color: #495057;
    font-weight: 600;
    transition: all 0.2s ease;
}

.and-view-switcher .and-view-btn:hover {
    background: #e9ecef;
}

.and-view-switcher .and-view-btn.active {
    background: #198754 !important;
    color: #ffffff !important;
    border-color: #198754 !important;
}

/* ----------------------------------------------------
   MONTHLY GRID VIEW STYLES
   ---------------------------------------------------- */
.and-cal-full-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-left: 1px solid #dee2e6;
    border-top: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    background-color: #ffffff;
}

.and-cal-header-cell {
    background-color: #198754;
    color: #ffffff;
    padding: 10px 4px;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 2px solid #146c43;
}

.and-cal-header-cell:nth-child(7) {
    border-right: 1px solid #198754;
}

.and-cal-day-cell {
    min-height: 110px;
    background-color: #ffffff;
    padding: 6px;
    position: relative;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    box-sizing: border-box;
    transition: background-color 0.15s ease;
}

/* Light green background for day cells that have scheduled members */
.and-cal-day-cell.has-members {
    background-color: #e8f5e9 !important; /* Soft light green matching admin design */
}

.and-cal-day-cell.and-day-empty {
    background-color: #f8f9fa;
}

.and-cal-day-cell.and-day-today {
    box-shadow: inset 0 0 0 2px #198754;
}

.and-day-number-bar {
    text-align: right;
    margin-bottom: 4px;
}

.and-day-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: #495057;
}

.and-day-number.text-success {
    color: #198754 !important;
}

.and-day-items-container {
    min-height: 75px;
}

/* Front-end read-only member item card */
.and-cal-member-item {
    background: #ffffff;
    border: 1px solid #ced4da;
    border-left: 4px solid #198754;
    border-radius: 4px;
    padding: 4px 8px;
    margin-bottom: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #212529;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.and-cal-member-item:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.12);
}

.and-badge-today {
    background: #198754;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
}

/* ----------------------------------------------------
   WEEKLY LIST VIEW STYLES (MOBILE FRIENDLY)
   ---------------------------------------------------- */
.and-week-nav-bar {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.and-week-current-label {
    font-size: 0.95rem;
    color: #198754 !important;
}

.and-week-pills-container {
    overflow-x: auto;
    padding-bottom: 4px;
}

.gap-1 {
    gap: 6px;
}

.and-week-pill-btn {
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.and-week-pill-btn:hover {
    background: #e8f5e9;
    border-color: #198754;
    color: #198754;
}

.and-week-pill-btn.active {
    background: #198754;
    border-color: #198754;
    color: #ffffff;
}

.and-week-pane {
    display: none;
}

.and-week-pane.and-week-active {
    display: block;
}

.and-week-day-card {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.and-week-day-card.has-events {
    border-left: 4px solid #198754;
}

.and-week-day-card.and-day-card-today {
    border: 2px solid #198754;
    background: #f4fbf5;
}

.and-week-day-header {
    background: #f8f9fa;
    padding: 10px 14px;
    border-bottom: 1px solid #e9ecef;
}

.and-day-card-today .and-week-day-header {
    background: #e8f5e9;
}

.and-week-day-title {
    font-size: 0.9rem;
    color: #212529;
}

.and-week-day-body {
    padding: 12px 14px;
}

.and-week-members-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.and-week-member-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.and-member-icon {
    color: #198754 !important;
}

.and-member-name {
    font-size: 0.85rem;
    color: #212529;
}

.and-member-obs {
    font-size: 0.75rem;
    color: #6c757d;
}

.and-week-empty-msg {
    color: #adb5bd;
    font-size: 0.8rem;
    font-style: italic;
}

/* ----------------------------------------------------
   VIEW VISIBILITY LOGIC (DESKTOP VS MOBILE DEFAULT)
   ---------------------------------------------------- */
.and-calendar-container.and-mode-mensal .and-month-view-wrapper {
    display: block !important;
}
.and-calendar-container.and-mode-mensal .and-week-view-wrapper {
    display: none !important;
}

.and-calendar-container.and-mode-semanal .and-month-view-wrapper {
    display: none !important;
}
.and-calendar-container.and-mode-semanal .and-week-view-wrapper {
    display: block !important;
}

/* Responsive fallback when data-view-mode is 'auto' */
@media (max-width: 767.98px) {
    .and-calendar-container[data-view-mode="auto"] .and-month-view-wrapper {
        display: none;
    }
    .and-calendar-container[data-view-mode="auto"] .and-week-view-wrapper {
        display: block;
    }
}

@media (min-width: 768px) {
    .and-calendar-container[data-view-mode="auto"] .and-month-view-wrapper {
        display: block;
    }
    .and-calendar-container[data-view-mode="auto"] .and-week-view-wrapper {
        display: none;
    }
}

/* ----------------------------------------------------
   FRONT-END PLAYLIST STYLES (MATCHING REFERENCE IMAGE)
   ---------------------------------------------------- */
.and-playlist-container {
    font-family: inherit;
}

.and-header-summary-card {
    border: 1px solid #e2e8f0;
}

.and-playlist-date-title {
    color: #1a365d !important;
    font-size: 1.4rem;
    font-weight: 700;
}

.and-date-title-divider {
    height: 2px;
    background: #3182ce;
    width: 100%;
    margin-bottom: 12px;
}

.and-summary-meta p {
    font-size: 0.95rem;
    color: #2d3748;
    line-height: 1.5;
}

.and-period-card {
    border: 1px solid #e2e8f0;
}

.and-period-title {
    color: #1a202c !important;
    font-size: 1.2rem;
    font-weight: 700;
}

.and-playlist-item-row {
    background: #f7fafc;
    border: 1px solid #edf2f7;
    border-radius: 6px;
    padding: 12px 16px;
}

.and-item-title-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.and-item-title-text {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
}

.and-btn-ouvir-letra {
    background-color: #ff0000 !important; /* Vibrant Red button matching reference image */
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    padding: 6px 16px !important;
    border-radius: 8px !important;
    border: none !important;
    transition: background-color 0.2s ease, transform 0.15s ease !important;
    cursor: pointer;
    line-height: 1.2;
}

.and-btn-ouvir-letra:hover {
    background-color: #cc0000 !important;
    transform: translateY(-1px);
}

.and-video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
}

.and-video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.and-letra-box {
    background: #f8f9fa;
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #212529;
    max-height: 350px;
    overflow-y: auto;
}


