/* 
 * Lịch Công Giáo - Giao diện
 * Main color: Blue
 */

 .lcg-container {
    max-width: 1200px;
    margin: 40px auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
}

.lcg-page-header {
    text-align: center;
    margin-bottom: 30px;
}

.lcg-page-header h1 {
    color: #0056b3;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.lcg-page-header h2 {
    color: #444;
    font-size: 1.5rem;
    margin-top: 20px;
}

.lcg-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.lcg-nav-btn {
    background-color: #0056b3;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.lcg-nav-btn:hover {
    background-color: #003d82;
}

.lcg-date-picker-wrap input {
    padding: 10px;
    font-size: 16px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 150px;
    cursor: pointer;
}

/* Calendar Grid */
.lcg-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #0056b3;
    color: #fff;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.lcg-header-cell {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.lcg-header-cell:last-child {
    border-right: none;
}

.lcg-grid-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-left: 1px solid #eee;
    border-top: none;
}

.lcg-cell {
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 12px;
    min-height: 160px;
    background-color: #fff;
    position: relative;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.lcg-cell-content {
    flex: 1 1 auto;
}

.lcg-cell-bottom {
    margin-top: auto;
    padding-top: 8px;
}

.lcg-cell:hover {
    background-color: #f9fbfc;
}

.lcg-cell.empty {
    background-color: #fafafa;
}

.lcg-date-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: #555;
}

.lcg-text-red {
    color: #dc3545 !important;
}

/* Top Area */
.lcg-cell-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

/* Highlighting Selected Day */
.lcg-cell.lcg-highlight {
    background-color: #e6f2ff;
    box-shadow: inset 0 0 0 2px #0056b3;
    border-radius: 4px;
}

/* Color Circles */
.lcg-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.circle-white { background-color: #f8f9fa; border: 1px solid #ccc; }
.circle-red { background-color: #dc3545; }
.circle-green { background-color: #28a745; }
.circle-purple { background-color: #6f42c1; }
.circle-pink { background-color: #e83e8c; }
.circle-default { background-color: #6c757d; }

.lcg-ten-le {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 5px;
    color: #222;
    line-height: 1.35;
}

.lcg-bac-le {
    font-size: 11px;
    color: #888;
    margin-bottom: 3px;
    font-style: italic;
}

.lcg-readings {
    font-size: 11px;
    color: #555;
    margin-top: 6px;
    line-height: 1.6;
}

.lcg-reading-item {
    display: inline-block;
    background: #f1f5f9;
    padding: 2px 5px;
    border-radius: 3px;
    margin-right: 3px;
    margin-bottom: 3px;
}

.lcg-btn-inline {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #0056b3;
    color: #fff !important;
    text-decoration: none;
    padding: 5px 4px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    transition: background-color 0.3s;
    box-sizing: border-box;
}

.lcg-btn-inline:hover {
    background-color: #003d82;
}

/* Responsive */
@media (max-width: 900px) {
    .lcg-grid-header {
        display: none; /* Ẩn header thứ trong tuần */
    }

    .lcg-grid-body {
        grid-template-columns: 1fr;
        border-left: none;
        gap: 15px;
        background-color: #f5f7f9;
        padding: 15px;
    }

    .lcg-cell {
        border: 1px solid #eee;
        border-radius: 8px;
        min-height: auto;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .lcg-cell.empty {
        display: none; /* Ẩn các ô trống trên mobile */
    }

    .lcg-date-number {
        font-size: 1.5rem;
        display: inline-block;
        margin-right: 15px;
    }
    
    .lcg-badge {
        vertical-align: super;
    }
}
