body {
    margin: 0;
    font-family: 'Segoe UI';
    display: flex;
    background: #f5f7fb;
}

/* SIDEBAR */
.sidebar-tx-dx {
    position: fixed;
    top: 0;
    left: 0;
    width: 230px;
    height: 100vh;
    background: #0f172a;
    color: #fff;
    padding: 20px;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-tx-dx h2 {
    margin-bottom: 20px;
}

.sidebar-tx-dx a {
    display: block;
    color: #cbd5e1;
    padding: 12px;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 10px;
}

.sidebar-tx-dx a:hover {
    background: #1e293b;
}

/* MAIN */
.main-tx-dx {
    flex: 1;
    margin-left: 270px;
    width: calc(100% - 270px);
}

/* TOPBAR */
.topbar-tx-dx {
    padding: 15px 20px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* CARDS */
.cards-tx-dx {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card-tx-dx {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.card-tx-dx h3 {
    margin: 0;
}

.card-tx-dx p {
    font-size: 28px;
    font-weight: bold;
}

/* CHARTS */
.charts-tx-dx {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

canvas {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
}

.charts-grid-tx-dx {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.chart-card-tx-dx {
    background: #fff;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    height: 260px;
    /* 👈 controls size */
}

/* FIX CHART SIZE */
.chart-card-tx-dx canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-card-tx-dx {
    background: #fff;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    height: 260px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 🔥 HOVER EFFECT */
.card-tx-dx {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

/* 🔥 HOVER EFFECT */
.card-tx-dx:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.chart-card-tx-dx:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
}

/* ✨ LIGHT GLOW EFFECT */
.chart-card-tx-dx::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.chart-card-tx-dx:hover::before {
    left: 100%;
}

/* TABLE */
.table-box-tx-dx {
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

th {
    cursor: pointer;
}

.table-actions-tx-dx {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 16px;
}

#searchInput {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 16px;
}

.total-box-tx-dx {
    font-size: 14px;
    color: #38bdf8;
}

.total-box.h2 {
    font-size: 16px;

}

.excel-btn-tx-dx {
    background: linear-gradient(45deg, #16a34a, #22c55e);
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: .3s;
}

.excel-btn-tx-dx:hover {
    transform: scale(1.05);
}

/* ================= MAIN ================= */

.mainform-tx-dx {
    margin-left: 10px;
    width: 90%;
    padding: 40px;
}

.form-box-tx-dx {
    background: white;
    max-width: 1200px;
    margin: auto;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-title-tx-dx {
    text-align: center;
    margin-bottom: 35px;
}

.form-title-tx-dx h1 {
    font-size: 42px;
    color: #111827;
}

.message-tx-dx {
    padding: 14px;
    margin-bottom: 25px;
    border-radius: 10px;
    background: #d1fae5;
    color: #065f46;
    font-weight: bold;
}

/* ================= GRID ================= */

.form-grid-tx-dx {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.input-group-tx-dx {
    display: flex;
    flex-direction: column;
}

.input-group-tx-dx label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.input-group-tx-dx input,
.input-group-tx-dx select {
    height: 50px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.input-group-tx-dx input:focus,
.input-group-tx-dx select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* ================= BUTTON ================= */

.btn-box-tx-dx {
    text-align: center;
    margin-top: 35px;
}

button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 16px 50px;
    font-size: 18px;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* ================= MODAL ================= */

.modal-tx-dx {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.modal-box-tx-dx {
    width: 100%;
    max-width: 450px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    animation: popup 0.3s ease;
}

@keyframes popup {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header-tx-dx {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header-tx-dx h2 {
    font-size: 28px;
    color: #111827;
}

.modal-header-tx-dx span {
    font-size: 32px;
    cursor: pointer;
    color: red;
}

.-tx-dx {
    margin-bottom: 20px;
}

.modal-input-tx-dx label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.modal-input-tx-dx input {
    width: 100%;
    height: 50px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 15px;
}

.modal-input-tx-dx input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.modal-box button {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 14px;
    background: #2563eb;
    color: white;
    font-size: 17px;
    cursor: pointer;
    transition: 0.3s;
}

.modal-box button:hover {
    background: #1d4ed8;
}

.manage-tx-dx {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 20px;

}

/* EVENT SECTION */
.event-container-tx-dx {
    width: 90%;
    animation: fadeIn .4s ease;
    margin-left: 40px;
}

/* TOP */
.event-top-tx-dx {
    margin-bottom: 25px;
}

.event-top-tx-dx h2 {
    font-size: 28px;
    color: #111;
    margin-bottom: 8px;
}

.event-top-tx-dx p {
    color: #777;
    font-size: 15px;
}

/* FORM */
.event-form-tx-dx {
    background: #fff;
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

/* GRID */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* INPUT */
.input-box-tx-dx {
    display: flex;
    flex-direction: column;
}

.input-box-tx-dx {
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.input-box-tx-dx input {
    height: 55px;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 0 18px;
    font-size: 15px;
    transition: 0.3s;
}

.input-box-tx-dx input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    outline: none;
}

/* FULL WIDTH */
.full-width-tx-dx {
    grid-column: 1/3;
}

/* FILE */
.upload-box-tx-dx {
    border: 2px dashed #ccc;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    background: #fafafa;
    transition: 0.3s;
}

.upload-box-tx-dx:hover {
    border-color: #4f46e5;
    background: #f8f7ff;
}

/* BUTTON */
.btn-box {
    margin-top: 25px;
}

.btn-box button {
    height: 55px;
    padding: 0 28px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(45deg, #4f46e5, #7c3aed);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-box button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.3);
}

/* TABLE */
.table-box {
    background: #fff;
    border-radius: 22px;
    padding: 25px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

.table-head-tx-dx {
    margin-bottom: 20px;
}

.table-head-tx-dx h3 {
    font-size: 22px;
}

/* TABLE RESPONSIVE */
.table-responsive-tx-dx {
    overflow: auto;
}

/* TABLE */
#eventTable {
    width: 100%;
    border-collapse: collapse;
}

#eventTable thead {
    background: #f5f6ff;
}

#eventTable th {
    padding: 16px;
    text-align: left;
    font-size: 14px;
    color: #555;
}

#eventTable td {
    padding: 16px;
    border-top: 1px solid #eee;
    vertical-align: middle;
}

/* IMAGE */
.event-thumb-tx-dx {
    width: 90px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* DELETE BUTTON */
.delete-btn-tx-dx {
    padding: 10px 16px;
    border-radius: 10px;
    background: #ffe9e9;
    color: #ff2e2e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.delete-btn-tx-dx:hover {
    background: #ff2e2e;
    color: #fff;
}

/* MOBILE */
@media(max-width:768px) {

    .form-grid-tx-dx {
        grid-template-columns: 1fr;
    }

    .full-width-tx-dx {
        grid-column: auto;
    }

    .event-form-tx-dx,
    .table-box-tx-dx {
        padding: 20px;
    }

}

/*pakagegenatrator*/
.package-modal-tx-dx {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.package-content-tx-dx {
    width: 100%;
    max-width: 1100px;
    background: #fff;
    border-radius: 25px;
    padding: 35px;
    overflow-y: auto;
    max-height: 95vh;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.modal-header-tx-dx {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header-tx-dx h2 {
    font-size: 32px;
    color: #213957;
    margin-bottom: 8px;
}

.modal-header-tx-dx p {
    color: #666;
    font-size: 15px;
}

.close-btn-tx-dx {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    cursor: pointer;
    color: red;
}

.section-title-tx-dx {
    background: linear-gradient(135deg, #303f56, #213957);
    color: #fff;
    padding: 14px 20px;
    border-radius: 14px;
    margin: 25px 0 20px;
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(10, 88, 202, 0.2);
}

.grid-box-tx-dx-tx-dx {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.input-box-tx-dx,
.textarea-box-tx-dx {
    margin-bottom: 20px;
}

.input-box-tx-dx label,
.textarea-box-tx-dx label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.input-box-tx-dx input,
.textarea-box-tx-dx textarea {
    width: 80%;
    padding: 14px;
    border: 1px solid #dce3f0;
    border-radius: 14px;
    outline: none;
    font-size: 14px;
    transition: 0.3s;
    background: #f9fbff;
    gap: 5px;
}

.input-box-tx-dx input:focus,
.textarea-box-tx-dx textarea:focus {
    border-color: #0a58ca;
    background: #fff;
    box-shadow: 0 0 10px rgba(10, 88, 202, 0.1);
}

.textarea-box-tx-dx textarea {
    min-height: 140px;
    resize: vertical;
}

.download-btn-tx-dx {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #0a58ca, #1d7df2);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 20px;
}

.download-btn-tx-dx:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(10, 88, 202, 0.3);
}

.add-day-btn-box-tx-dx {
    margin-top: 10px;
    margin-bottom: 25px;
}

.add-day-btn-tx-dx {
    border: none;
    padding: 14px 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, #04152d, #0a58ca);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
}

.add-day-btn-tx-dx:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 88, 202, 0.3);
}

.day-box-tx-dx {
    position: relative;
}

.remove-day-tx-dx {
    position: absolute;
    right: 10px;
    top: 10px;
    background: red;
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
}

@media(max-width:768px) {

    .sidebar-tx-dx {
        width: 220px;
        transform: translateX(-100%);
        transition: 0.3s;
    }

    .sidebar-tx-dx.active {
        transform: translateX(0);
    }

    .main-tx-dx {
        margin-left: 0;
        width: 100%;
    }

    .form-grid-tx-dx {
        grid-template-columns: 1fr;
    }

    .full-width-tx-dx {
        grid-column: auto;
    }

    .event-form-tx-dx,
    .table-box-tx-dx {
        padding: 20px;
    }

}

/*loginpage style*/

/* ===== PAGE STYLE ===== */
body.bodylogin {
    font-family: Arial;
    background: #f2f2f2;
}

/* ===== CONTAINER ===== */
.containerlogin {
    max-width: 420px;
    margin: 60px auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* ===== TITLE ===== */
.containerlogin h2 {
    text-align: center;
    margin-bottom: 15px;
}

/* ===== MESSAGE ===== */
.message {
    background: #ffe0e0;
    padding: 10px;
    margin-bottom: 15px;
    color: red;
    text-align: center;
    border-radius: 6px;
}

/* ===== TABS (FIXED NO OVERLAP) ===== */
.tabslogin {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 15px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
}

.tab.active {
    color: #4f46e5;
    border-bottom: 3px solid #4f46e5;
}

/* ===== FORM BOX ===== */
.form-box {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-box.active {
    display: block;
}

/* ===== INPUT ===== */
.containerlogin input {
    width: 94%;
    padding: 12px;
    margin: 8px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    outline: none;
}

.containerlogin input:focus {
    border-color: #4f46e5;
}

/* ===== BUTTON ===== */
.containerlogin button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #4f46e5, #6366f1);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
}

/* ===== LINKS ===== */
.register-link {
    text-align: center;
    margin-top: 12px;
}

.register-link-tx {
    text-align: left;
    margin-top: 12px;
}

.register-link a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

.register-link-tx a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

#recoverForm {
    width: 320px;
    background: #ffffff;
    padding: 20px;
    margin-top: 15px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    font-family: Arial, sans-serif;
}

#recoverForm h3 {
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

#recoverForm input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
}

#recoverForm input:focus {
    border-color: #6c5ce7;
    box-shadow: 0 0 5px rgba(108, 92, 231, 0.3);
}

#recoverForm button {
    width: 100%;
    padding: 10px;
    background: #6c5ce7;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: 0.3s;
}

#recoverForm button:hover {
    background: #5a4bd6;
}

#closeRecover {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

.register-link-tx {
    margin-top: 10px;
    font-size: 14px;
}

.register-link-tx a {
    color: #6c5ce7;
    text-decoration: none;
}

.register-link-tx a:hover {
    text-decoration: underline;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* show modal when active */
.modal-overlay.active {
    display: flex;
}

.modal-box {
    width: 350px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-box h3 {
    margin-bottom: 15px;
    color: #333;
}

.modal-box input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.modal-box button {
    width: 100%;
    padding: 10px;
    background: #6c5ce7;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.modal-box button:hover {
    background: #5948d6;
}

/* CLOSE BUTTON */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
    color: #333;
    font-weight: bold;
}

.close-btn:hover {
    color: red;
}

/* animation */
@keyframes fadeIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== ANIMATION ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}