/* Base and Shared Styles */
.mednote {
    display: none;
    color: #000;
    text-align: left;
    margin-top: 10px;
    margin-bottom: 5px;
    padding: 12px 14px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    opacity: 0;
    transform: translateX(-25px);
    transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.mednote.mednote-open {
    opacity: 1;
    transform: translateX(0);
}
.mednote .ta {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
}
.noteIconDisable {
    color: #777;
    cursor: default;
    transition: transform 0.2s ease;
}
.noteIconReadOnly {
    color: #0a5bb2;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.noteIconRWhasdata {
    color: #338802;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.noteIconRWnodata {
    color: #000;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.fa.noteIconRWhasdata:hover,
.fa.noteIconRWnodata:hover,
.fa.noteIconReadOnly:hover {
    transform: scale(1.15);
}
.btnS {
    margin-top: 10px;
    margin-left: 0;
}
.mt_chk_boxes {
    width: 24px; 
    height: 24px;
    cursor: pointer;
    vertical-align: middle;
    margin: 0;
    accent-color: #04AA6D;
}
#myProgress {
    width: 50%;
    height: 10px;
    background-color: #ddd;
    margin: 0 auto;
}
#myBar {
    width: 1%;
    height: 10px;
    background-color: #04AA6D;
}
#ccBar {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Frontend Meditation Tracker Table */
.meditation-tracker-card {
    max-width: 720px;
    margin: 0 auto 30px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow: hidden;
}
.meditation-tracker-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 0;
}
/* State 1: Before opening note editor (Date 40% / Record 60%) */
.meditation-tracker-table th.col-date {
    width: 40%;
    text-align: center;
    padding: 12px 10px;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-size: 15px;
    font-weight: 600;
    color: #495057;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.meditation-tracker-table th.col-record {
    width: 60%;
    text-align: center;
    padding: 12px 10px;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-size: 15px;
    font-weight: 600;
    color: #495057;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.meditation-tracker-table td.col-date {
    width: 40%;
    text-align: center; /* Center-aligned date */
    padding: 10px 8px;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    white-space: nowrap; /* Lock date onto a single line */
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.meditation-tracker-table td.col-record {
    width: 60%;
    text-align: left;
    padding: 10px 15px 10px 20px;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* State 2: After clicking to open note editor (Date 25% / Record 75%) */
.meditation-tracker-table.has-open-note th.col-date,
.meditation-tracker-table.has-open-note td.col-date {
    width: 25%;
    white-space: nowrap;
}
.meditation-tracker-table.has-open-note th.col-record,
.meditation-tracker-table.has-open-note td.col-record {
    width: 75%;
}
.meditation-tracker-table tr:hover {
    background-color: #fcfcfc;
}
.record-controls {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 576px) {
    .meditation-tracker-table td.col-date {
        padding: 10px 4px;
        font-size: 13px;
    }
    .meditation-tracker-table td.col-record {
        padding-left: 10px;
    }
}

.warningUser {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 8px auto;
    max-width: 90%;
    display: inline-block;
    font-size: 14px;
}

/* Admin Dashboard & Manual Tracker Styles */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 3px;
    transition: all 0.2s ease;
}
.status-meditated {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.status-not-meditated {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.spin {
    display: inline-block;
    animation: spin 1s infinite linear;
}
