:root {
    --primary-color: #4c6ef5;
    --primary-dark: #3b5bdb;
    --primary-light: #eef2ff;
    --primary-bg-light: #f1f3ff;
    --primary-border-light: #dbe4ff;
    --bg-danger-light-color: #ffeeee;
    --success-color: #37b24d;

    --text-dark: #333;

    --bg-white: #fff;
    --bg-light: #f8f9fa;
    --bg-soft: #f8f9ff;
    --bg-hover-soft: #eef1ff;
    --bg-gray-light: #f1f3f5;
    --bg-gray-hover: #e7f0ff;
    --bg-table-hover: #f9fbff;

    --border-light: #eee;
    --border-soft: #e4e7ff;

    --shadow-light: 0 10px 25px rgba(0,0,0,0.05);
    --shadow-card: 0 4px 15px rgba(0,0,0,0.05);
    --shadow-primary: 0 4px 12px rgba(76,110,245,0.3);
}

/* ================= PROFILE CARD ================= */

.profile_card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-light);
}

.profile_card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    
}

.profile-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-img img {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
}

.welcome-text {
    font-size: 18px;
    margin-bottom: 8px;
}

.member-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.profile-right {
    text-align: right;
}

.logout-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    transition: 0.3s ease;
    text-decoration: none;
}

.logout-icon:hover {
    background: #dc3545;
    color: #fff;
    transform: rotate(8deg);
}

/* ================= BUTTONS ================= */

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s ease;
}

.action-btn.primary {
    background: var(--primary-color);
    color: var(--bg-white);
}

.action-btn.success {
    background: var(--success-color);
    color: var(--bg-white);
}

.action-btn.secondary {
    background: var(--bg-gray-light);
    color: var(--text-dark);
}

/* ================= SUPPORT SECTION ================= */

.support-section {
    margin-top: 25px;
}

.support-section h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.support-grid strong {
    color: var(--text-dark);
}

.support-grid a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Hide button in desktop */
.support-toggle-btn {
    display: none;
}

.support-section {
    margin-top: 20px;
}

/* ================= MOBILE VERSION ================= */

@media (max-width: 768px) {

    .support-toggle-btn {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 14px 18px;
        background: var(--bg-soft);
        border: 1px solid var(--border-soft);
        border-radius: 14px;
        font-weight: 600;
        color: var(--primary-color);
        cursor: pointer;
        transition: all 0.3s ease;
        margin-top: 14px;
    }

    .support-toggle-btn:hover {
        background: var(--bg-hover-soft);
    }

    .support-toggle-btn i {
        transition: transform 0.3s ease;
    }

    .support-toggle-btn.active i {
        transform: rotate(180deg);
    }

    .support-section {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.3s ease;
        background: var(--bg-light);
        border-radius: 12px;
        margin-top: 10px;
        padding: 0 15px;
    }

    .support-section.active {
        max-height: 500px;
        padding: 15px;
    }
}

/* ================= TAB BUTTONS ================= */

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tab-buttons::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 1;
    min-width: 160px;
    padding: 12px 16px;
    background: var(--bg-gray-light);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow-wrap: break-word;
    white-space: normal;
}

.tab-btn:hover {
    background: var(--bg-gray-hover);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
    box-shadow: var(--shadow-primary);
    overflow-wrap: break-word;
    white-space: normal;
}

/* ================= TAB CONTENT ================= */

.tab-content-wrapper {
    margin-top: 20px;
    padding:0px 8px 2px 10px !important;
}

.tab-content {
    display: none;
    padding: 18px;
    background: var(--bg-light);
    border-radius: 12px;
    animation: fadeIn 0.3s ease;

}

.tab-content.active {
    display: block;
    padding: 1px 8px 16px 10px !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .tab-buttons {
        gap: 8px;

    }

    .tab-btn {
        min-width: 140px;
        padding: 10px 14px;
        font-size: 14px;
    }

    .tab-content {
        padding: 14px;
    }
}

/* ================= CARD ================= */

.custom-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-light);
}

.card-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.card-body {
    padding: 15px 20px;
}

/* ================= TABLE ================= */

.custom-table {
    width: 100%;
    border-collapse: collapse;
    vertical-align: middle;
    text-align: center;
}

.custom-table thead th {
    background: var(--primary-bg-light) !important;
    color: var(--primary-dark) !important;
    padding: 12px 8px;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-border-light);
}

.custom-table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}

.custom-table tbody tr:last-child td {
    border-bottom: none;
}

.custom-table tbody tr:hover {
    background: var(--bg-table-hover);
}

@media (max-width: 768px) {
    .custom-table th,
    .custom-table td {
        padding: 10px 5px;
        font-size: 13px;
    }

    .card-body {
        overflow-x: auto;
    }
}

/* ===== Desktop Normal Table ===== */
.custom-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table th,
.custom-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.custom-table tbody tr:hover {
    background: #f8f9fa;
}

/* ===== Mobile Card Design ===== */
@media (max-width: 768px) {

    .custom-table thead {
        display: none;   /* Hide table header */
    }

    .custom-table,
    .custom-table tbody,
    .custom-table tr,
    .custom-table td {
        display: block;
        width: 100%;
    }

    .custom-table tr {
        background: #ffffff;
        margin-bottom: 15px;
        border-radius: 12px;
        padding: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
        border: 1px solid #eee;
    }

    .custom-table td {
        text-align: left;
        padding: 8px 10px;
        border: none;
        position: relative;
        padding-left: 50%;
        font-size: 14px;
    }

    .custom-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 12px;
        width: 45%;
        font-weight: 600;
        color: #555;
        font-size: 13px;
    }

    .custom-table td:last-child {
        padding-left: 10px;
        text-align: center;
        margin-top: 10px;
    }

    .custom-table td:last-child::before {
        display: none;
    }

    .custom-table button {
        width: 100%;
        border-radius: 8px;
    }
}

/* WRAPPER */
.registration-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

/* CARD */
.registration-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.registration-card:hover {
    transform: translateY(-3px);
}

/* HEADER */
.registration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.registration-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.event-date {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

/* STATUS BADGE */
.status-badge {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 20px;
    background: #eef2ff;
    color: #4c6ef5;
    font-weight: 600;
    white-space: nowrap;
}

/* BODY */
.registration-body {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.info-block {
    flex: 1;
    min-width: 250px;
}

.info-block p {
    margin: 6px 0;
    font-size: 14px;
}

.info-block strong {
    color: #333;
}

/* FOOTER */
.registration-footer {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;

}

/* BUTTONS */
.btn-primary {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: #4c6ef5;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-primary:hover {
    background: #3b5bdb;
}

.btn-secondary {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: #f1f3f5;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-secondary:hover {
    background: #e9ecef;
}

/* ================= MOBILE RESPONSIVE ================= */

@media (max-width: 768px) {

    .registration-card {
        padding: 16px;
    }

    .registration-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .registration-body {
        flex-direction: column;
        gap: 15px;
    }

    .registration-footer {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}


/* ================= WRAPPER ================= */

.user-accordion-wrapper {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ================= USER ACCORDION CARD ================= */

.user-accordion {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: 0.3s ease;
}

/* ================= HEADER ================= */

.accordion-header {
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: #eef2ff;
}

.accordion-header h5 {
    margin: 0;
    font-weight: 600;
}

.accordion-header span {
    font-size: 14px;
    color: #666;
}

/* Arrow */
.arrow {
    transition: transform 0.3s ease;
}

/* Rotate when active */
.user-accordion.active .arrow {
    transform: rotate(180deg);
}

/* ================= BODY ================= */

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 20px;
    background: #ffffff;
}

/* Open state */
.user-accordion.active .accordion-body {
    max-height: 1000px;
    padding: 15px 20px 20px 20px;
}

/* ================= MINI COURSE CARD ================= */

.mini-course-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 12px;
    font-size: 14px;
    transition: 0.2s ease;
}

.mini-course-card:hover {
    background: #eef1ff;
    transform: translateX(3px);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .accordion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .accordion-header span {
        font-size: 13px;
    }

    .mini-course-card {
        font-size: 13px;
    }
}


/* --------checking -------- */


/* Default: Desktop */
.mobile-view {
    display: none;
}

.desktop-view {
    display: block;
}

/* Mobile */
@media (max-width: 768px) {

    .desktop-view {
        display: none;
    }

    .mobile-view {
        display: block;
    }
}

/* ===== Card Styling ===== */

.course-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.course-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    border: 1px solid #eee;
}

.course-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.course-zone {
    background: #e9f2ff;
    color: #0d6efd;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.course-title {
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0;
}

.course-info p {
    margin: 4px 0;
    font-size: 14px;
    color: #555;
}

.btn-register {
    width: 50%;
    padding: 8px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    font-weight: 600;
    float: right;
}

.btn-reg_btn {
  background-color: var(--bg-hover-soft) !important;
  color: #1a1a1a;
  border: none;
  padding: 12px 12px;
  
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-coming_soon_btn {
  background-color: var(--bg-hover-soft) !important;
  color: #1a1a1a;
  border: none;
  padding: 12px 12px;
  
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-reg_btn i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.btn-reg_btn:hover {
  background-color: #e0a800;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-reg_btn:hover i {
  transform: translateX(4px);
}

.btn-reg_btn:active {
  transform: scale(0.98);
}

.btn-reg_btn:focus {
  outline: 3px solid rgba(244,180,0,0.5);
  outline-offset: 2px;
}

/* --------------- */

.btn-proceedbtn {
  background-color: var(--bg-danger-light-color) !important;
  color: #1a1a1a;
  border: none;
  padding: 12px 12px;
  
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-proceedbtn i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.btn-proceedbtn:hover {
  background-color: #e0a800;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-proceedbtn:hover i {
  transform: translateX(4px);
}

.btn-proceedbtn:active {
  transform: scale(0.98);
}

.btn-proceedbtn:focus {
  outline: 3px solid rgba(244,180,0,0.5);
  outline-offset: 2px;
}

.course_instruction_div{
    background:#f8f9fb;
    border:1px solid #e5e7eb;
    border-radius:10px;
    padding:18px;
    font-size:14px;
    line-height:1.6;
}

/* Section blocks */
.course_instruction_div span{
    display:block;
    margin-bottom:12px;
}

/* Category title */
.course_instruction_div strong:first-child{
    display:block;
    font-size:15px;
    color:#2e7d32;
    margin-bottom:4px;
}

/* Eligibility text */
.course_instruction_div strong{
    color:#444;
}

/* Highlight eligibility */
.course_instruction_div span strong + br + text{
    color:#555;
}

/* Optional: add subtle left border */
.course_instruction_div span{
    border-left:3px solid #2e7d32;
    padding-left:10px;
}

/* MOBILE */
@media(max-width:768px){
    .course_instruction_div{
        padding:15px;
        font-size:13px;
    }
}

/* Agreement box */
.agreement-box{
    margin-top:15px;
    padding-top:10px;
    border-top:1px solid #e5e5e5;
}

/* Custom checkbox container */
.custom-checkbox{
    display:flex;
    align-items:center;
    cursor:pointer;
    font-size:14px;
    color:#444;
    gap:10px;
}

/* Hide default checkbox */
.custom-checkbox input{
    display:none;
}

/* Custom checkbox UI */
.checkmark{
    width:18px;
    height:18px;
    border:2px solid #2e7d32;
    border-radius:4px;
    display:inline-block;
    position:relative;
}

/* Checked state */
.custom-checkbox input:checked + .checkmark{
    background:#2e7d32;
}

/* Tick mark */
.custom-checkbox input:checked + .checkmark::after{
    content:'';
    position:absolute;
    left:4px;
    top:1px;
    width:5px;
    height:10px;
    border:solid #fff;
    border-width:0 2px 2px 0;
    transform:rotate(45deg);
}

/* Agreement section */
.agreement-box{
    margin-top:15px;
    padding:12px;
    border-top:1px solid #e5e5e5;
}

/* Improve checkbox spacing */
.form-check{
    display:flex;
    align-items:flex-start;
    gap:8px;
}

/* Checkbox styling */
.form-check-input{
    margin-top:4px;
    cursor:pointer;
}

/* Label styling */
.form-check-label{
    font-size:14px;
    color:#444;
    cursor:pointer;
}

/* Hover effect */
.form-check-label:hover{
    color:#2e7d32;
}

/* Checked state */
.form-check-input:checked{
    background-color:#2e7d32;
    border-color:#2e7d32;
}

/* Mobile */
@media(max-width:768px){
    .form-check-label{
        font-size:13px;
    }
}

.custom-modal-md {
  max-width: 800px;
}