/*-----------------------------------------
  Register Tabs Container
------------------------------------------*/
.register-tabs-container {
    margin-bottom: 20px;
}

/* Tab navigation */
.register-tabs {
    display: flex;
    justify-content: center; /* Center buttons */
    background-color: transparent; /* Empty background */
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    gap: 10px; /* Gap between buttons */
}

.register-tab-button {
    flex: 1; /* Buttons take equal space */
    max-width: 250px; /* Optional max width per button */
    padding: 12px 20px;
    border: 1px solid #8d8d8d;
    background-color: #8d8d8d; /* Non-active buttons are grey */
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    font-size: 14px;
    border-radius: 6px;
    box-sizing: border-box;
}

.register-tab-button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.register-tab-button.active {
    background-color: #09961c;
    color: white;
    border-color: #09961c;
}

/* Tab content */
.register-tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: transparent;
    border-radius: 0 0 8px 8px;
    min-height: 78vh;
    display: block;
    height: 100%;
}

.register-tab-pane {
    display: none;
}

.register-tab-pane.active {
    display: block;
}



/*-----------------------------------------
  Form Styling
------------------------------------------*/
h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: black;
}

.form-wrapper {
    max-width: 70%;
    margin: 0 auto;
    padding: 0 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.form-group {
    padding: 20px;
    border: none;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: black;
    margin-bottom: 8px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"] {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

input:focus {
    border-color: blue;
    outline: none;
}

.error-message {
    color: #FF6347;
    font-size: 12px;
    margin-top: 5px;
}

.form-field select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-field select:focus {
    border-color: blue;
    outline: none;
}

/*-----------------------------------------
  Button Styling
------------------------------------------*/
.login-button {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background-color: #3721b6;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    margin: 8px 0;
}

.login-button:hover {
    background-color: #6c83d6;
}

/*-----------------------------------------
  Icons / Notifications
------------------------------------------*/
.icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.icon {
    position: relative;
    font-size: 24px;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background-color: red;
    color: white;
    font-size: 10px;
    border-radius: 50%;
    padding: 2px 5px;
}

.notification-label {
    font-size: 12px;
    margin-top: 4px;
}

/*-----------------------------------------
  Tables
------------------------------------------*/
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    background-color: rgb(89, 98, 137);
    text-transform: uppercase;
    padding: 0;
    box-sizing: border-box;
}

.styled-table thead tr {
    background-color: #009879;
    color: #ffffff;
    text-align: left;
}

.styled-table th,
.styled-table td {
    padding: 8px 10px;
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #102499;
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid #009879;
}

.styled-table tbody tr.active-row {
    font-weight: bold;
    color: #009879;
}

@media screen and (max-width: 768px) {
    .styled-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .styled-table th,
    .styled-table td {
        white-space: nowrap;
        padding: 4px 6px;
        font-size: 0.7rem;
    }
}

@media screen and (max-width: 600px) {
    .register-tabs {
        flex-direction: row; /* Keep buttons side by side */
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .register-tab-button {
        flex: 1;
        max-width: 250px;
        padding: 12px 0;
    }

    .register-tab-content {
        padding: 10px;
    }

    .form-row {
        grid-template-columns: 1fr; /* Form fields stack vertically */
        gap: 15px;
    }
}
/*-----------------------------------------
  Misc
------------------------------------------*/
.hidden {
    display: none;
}

.separation-bar {
    width: 100%;
    height: 10px;
    background-color: #ccc;
    margin: 20px 0;
}
/*-----------------------------------------
  Password Wrapper for Register Forms
------------------------------------------*/

/* Position the input and the eye icon together */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* The input takes full width */
.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    padding-right: 40px; /* leave space for the eye icon */
    box-sizing: border-box;
}

/* Style the toggle (eye icon) */
.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    color: #666;
    font-size: 16px;
    user-select: none;
}

.toggle-password:hover {
    color: #000;
}