/* Custom responsive styles */
.terms-section {
    max-height: 80vh;
    overflow-y: auto;
}

.form-section {
    height: 100%;
    overflow-y: auto;
}

/* Center the entire card on screen */
.container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.card {
    max-width: 1200px;
    width: 100%;
    margin: auto;
}

.card-body {
    height: 100%;
    align-content: center;
}

.error-message,
.success-message,
.info-message {
    display: none;
    padding: 0.4rem 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
    margin: 1rem 0;
}

.error-message {
    color: #bf0711;
    background-color: #fbeae5;
    border-color: #fbb1a6;
    position: relative;
    z-index: 9999;
}

.success-message {
    color: #108043;
    background-color: #e3f1df;
    border-color: #a5d8a2;
    position: relative;
    z-index: 9999;
}

.info-message {
    color: #084298;
    background-color: #cfe2ff;
    border-color: #b6d4fe;
    position: relative;
    z-index: 9999;
}

.success-text,
.error-text,
.info-text {
    margin: 0;
}

/* Mobile-first approach */
@media (max-width: 767.98px) {
    .card-container {
        height: auto !important;
    }
    
    .terms-section {
        max-height: 40vh;
        /* margin-bottom: 2rem; */
    }
    
    .form-section {
        min-height: auto;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .section-divider {
        border-top: 1px solid #dee2e6;
        /* margin: 1rem 0; */
    }
    
    /* Adjust container centering for mobile */
    .container {
        align-items: flex-start;
        padding-top: 2rem;
    }
}

/* Ensure form is always accessible */
.registration-form {
    position: relative;
    z-index: 1;
}

/* Improve checkbox styling on mobile */
@media (max-width: 767.98px) {
    .form-check-label {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/*  */
/*  */
/*  */
/* css for dashboard */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@100..900&display=swap');

body {
    background-color: #ffffff;
    font-family: 'Raleway', sans-serif;
    margin: 0;
    padding: 3% 5%;
    line-height: 1.5;
}

.page-header {
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 16px;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
}

.page-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.button-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.common_button {
    padding: 12px 24px;
    font-size: 1rem;
    border: none;
    background-color: #e5e5e5;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 8px;
}

.common_button.primary {
    background-color: #0053ba;
    color: white;
    pointer-events: none;
}

.common_button.secondary:hover {
    background: #303030;
    color: #ffffff;
}

.stat-card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 24px 16px;
}

.stat-card {
    flex: 1 1 calc(33.33% - 32px);
    background-color: #f0f4f8;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    box-sizing: border-box;
}

.stat-card h2 {
    margin: 8px 0 0 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.section-title {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 24px 16px 8px;
}

.table-container {
    margin: 16px;
    overflow-x: auto;
    width: calc(100% - 32px);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 768px;
}

.custom-table th,
.custom-table td {
    padding: 10px 20px;
    box-sizing: border-box;
}

.custom-table thead th {
    background-color: #f0f4f8;
    color: #000;
    text-align: left;
}

.custom-table tbody tr.parentrow td {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.parentrow .openblock {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.parentrow .openblock::after {
    content: " ▲";
}

.parentrow.showblock .openblock::after {
    content: " ▼";
}

.childrow {
    display: none;
}

.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
}

.pagination p {
    margin: 0;
    font-size: 0.95rem;
}

.pagination nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    color: #0053ba;
}

.pagination span {
    background-color: #0053ba;
    color: #fff;
    pointer-events: none;
}

/* Media queries for responsiveness */

/* For devices with width <= 1024px (small desktops/tablets) */
@media (max-width: 1024px) {
    .stat-card {
        flex: 1 1 calc(50% - 32px);
    }

    .custom-table {
        min-width: 100%;
    }
}

/* For devices with width <= 768px (tablets) */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stat-card {
        flex: 1 1 100%;
    }

    .button-group {
        justify-content: flex-start;
        margin-top: 5%;
    }
}

/* For devices with width <= 480px (mobile phones) */
@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.5rem;
    }

    .common_button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.25rem;
    }
}