/* --- Table Container --- */
.table-row {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden; 
}

/* Header & Button */
.table-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.table-header h3 { margin: 0; color: var(--text-main); font-size: 1.2rem; }
.btn-refresh { background: linear-gradient(135deg, #6c5ce7, #a29bfe); color: white; padding: 8px 15px; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; }
/* Download Button Style */
.btn-download {
    background: linear-gradient(135deg, #fd79a8, #e84393); /* সুন্দর পিঙ্ক কালার */
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(232, 67, 147, 0.3);
    transition: transform 0.2s;
    text-decoration: none; /* লিংকের জন্য */
    display: inline-block;
}
.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(232, 67, 147, 0.4);
}

/* --- Desktop Table Styling --- */
.table-wrapper { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
table th { background: rgba(0,0,0,0.03); color: var(--text-light); font-weight: 700; padding: 12px; font-size: 0.8rem; text-transform: uppercase; }
table td { padding: 12px; text-align: center; border-bottom: 1px solid rgba(0,0,0,0.05); color: var(--text-main); font-size: 0.9rem; }

/* Desktop এ নামগুলো হাইড রাখা */
.mobile-label { display: none; }

/* Pagination & Modal (Unchanged) */
.pagination_class { margin-top: 20px; display: flex; justify-content: center; gap: 5px; }
.pagination_class a, .pagination_class span { padding: 8px 12px; border-radius: 6px; text-decoration: none; background: rgba(0,0,0,0.05); color: var(--text-main); }
.pagination_class span { background: #00b894; color: white; }
.btn-edit { padding: 5px 15px; background: rgba(0, 184, 148, 0.1); color: #00b894; border: 1px solid rgba(0, 184, 148, 0.2); border-radius: 5px; cursor: pointer; font-weight: 600; }

/* Modal */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(4px); overflow-y: auto; }
.modal-content { background-color: #fff; margin: 10% auto; padding: 25px; border-radius: 15px; width: 90%; max-width: 450px; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group input { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 5px; box-sizing: border-box; }
.btn-save { width: 100%; padding: 10px; background: #00b894; color: white; border: none; margin-top: 20px; border-radius: 5px; cursor: pointer; }

/* --- MOBILE RESPONSIVE FIX (Direct HTML Labels) --- */
@media screen and (max-width: 1024px) {
    .table-wrapper { overflow-x: hidden; }
    table { min-width: 0; width: 100%; }
    table thead { display: none; }
    table, tbody, tr, td { display: block; box-sizing: border-box; }

    /* Card Design */
    table tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        background: #fff;
        margin-bottom: 15px;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        padding: 12px;
        border: 1px solid #f0f0f0;
    }

    /* Time Section */
    table td:first-child {
        grid-column: 1 / -1;
        text-align: left;
        font-weight: bold;
        color: #2d3436;
        font-size: 1.1rem;
        border-bottom: 1px solid #eee;
        padding-bottom: 8px;
        margin-bottom: 5px;
        background: transparent;
    }
    /* টাইম সেকশনের লেবেল দরকার নেই */
    table td:first-child .mobile-label { display: none; }

    /* Data Boxes */
    table td {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 10px;
        text-align: left;
        border: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* --- লেবেল ডিজাইন (HTML থেকে আসবে) --- */
    .mobile-label {
        display: block; /* মোবাইলে শো করবে */
        font-size: 0.7rem;
        text-transform: uppercase;
        color: #636e72;
        font-weight: 700;
        margin-bottom: 4px;
        letter-spacing: 0.5px;
    }

    /* Button */
    table td:last-child {
        grid-column: 1 / -1;
        background: transparent;
        padding: 0; margin-top: 5px;
    }
    .btn-edit {
        width: 100%;
        background: linear-gradient(135deg, #00b894, #55efc4);
        color: white;
        padding: 10px;
        border: none;
        border-radius: 8px;
        font-weight: bold;
    }
}