/* #### Global Styles #### */

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    color: #333;  /* Basic text color */
}

/* #### Button Styles #### */

.btn, .confirm-btn {
    align-items: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #FCFCFD;
    border-radius: 4px;
    border-width: 0;
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,rgba(45, 35, 66, 0.3) 0 7px 13px -3px,#D6D6E7 0 -3px 0 inset;
    box-sizing: border-box;
    color: #36395A;
    cursor: pointer;
    display: inline-flex;
    font-family: "JetBrains Mono",monospace;
    height: 48px;
    justify-content: center;
    line-height: 1;
    list-style: none;
    overflow: hidden;
    padding-left: 16px;
    padding-right: 16px;
    position: relative;
    text-align: left;
    text-decoration: none;
    transition: box-shadow .15s,transform .15s;
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
    user-select: none;
    touch-action: manipulation;
    white-space: nowrap;
    will-change: box-shadow,transform;
    font-size: 18px;
}

.btn:hover, .confirm-btn:hover {
    background-color: #FFF896;
    box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #F8DC40 0 -3px 0 inset;
    transform: translateY(-2px);
}

.btn:focus, .confirm-btn:focus {
    box-shadow: #D6D6E7 0 0 0 1.5px inset, rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
}

.btn:active, .confirm-btn:active {
    box-shadow: #D6D6E7 0 3px 7px inset;
    transform: translateY(2px);
}

.confirm-btn {
    height: 30px;
    font-size: 13px;
}

/* #### Layout Containers #### */

.container-top, .container-middle, 
.container-bottom {
    width: 100vw;
    text-align: center;
    padding: 20px 0;
}

.container-bottom {
    position: fixed;
    bottom: 10px;
    left: -7px;
    padding: 20px 20px;
}

.container-middle {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 50vh;
    gap: 30px;
    left: auto;
}

@media screen and ( max-width: 495px) {
    .container-middle {
        left: 0vw;
        top: 0vw;
        height: 30vh;
    }
}

/* Positioning the buttons */
#information-btn, #logout-btn, 
#request-special-status-btn, #request-admin-status-btn, 
#request-family-tree-access-btn, #archive-btn {
    margin: 10px 20px;
}

#home-btn {
    position: absolute;
    top: 5%;
    right: 5%;  
}

#back-btn {
    position: absolute;
    padding: 0px 10px;
    top: 5%;
    left: 5%;
}

/* #### frontpage #### */
.index-background {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

#sunburst-title {
    font-size: 2em;
    white-space: nowrap;
}

#wheel-image {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    z-index: -10;
}

.fa-solid .fa-bell {
    position: absolute;
    top: 5%;
    right: 5%;
    height: 20%;
    width: 20%;
    z-index: 0;
}

#notif-btn {
    position: relative;
    display: inline-block;
}

#notif-clear-btn {
    padding: 0px 10px;
}

#notif-clear-btn:hover{
    background-color: red;
    color: white;
    box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, rgba(45, 35, 66, 0.3) 0 -3px 0 inset;
}

#notification-list .btn {
    width: 100%; /* Set width to 100% to occupy the full width of the parent container */
    display: block; /* Make it a block element so it takes up the full width */
    text-align: center; /* Center the text */
    white-space: wrap; /* Prevent wrapping of text */
}

#badge {
    position: absolute;
    top: 3px;  
    right: 3px;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: red;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    z-index: 1;
}

@media screen and ( max-width: 1024px) {
    #wheel-image {
        position: absolute;
        bottom: -30vh;  
        right: -40vw;   
        width: 100vw;    
        z-index: -10;
    }
}

@media screen and (max-width: 640px) {
    #wheel-image {
        position: absolute;
        bottom: -40vh;  
        right: -110vw;   
        width: 200vw;    
        z-index: -10;
    }
    .btn, .confirm-btn {
        height: 25px;
        padding-left: 16px;
        padding-right: 16px;
        font-size: 15px;
    }
    .container-middle {
        bottom: 10vh;
        right: 70vw;
    }
    #sunburst-title {
        white-space: pre-line;
        font-size: 1.5em;
    }
}

/* #### Information #### */

.info-title {
    margin: 40px 0px 20px 0px;
}

.info-title h3 {
    margin: 10px 0px;
}

.information-container {
    margin: 0px 40px 60px 40px;
    max-width: 100;
    padding: 0 10px;
}

.information-container h1 {
    text-align: center;
    padding: 20px 20px;
    font-size: 250%;
}

.info-roles {
    display: grid;
    margin: 20px 0px;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
}

.info-role {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,rgba(45, 35, 66, 0.3) 0 7px 13px -3px,#D6D6E7 0 -3px 0 inset;
    box-sizing: border-box;
}

.info-role:hover {
    background-color: #FFF896;
    box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #F8DC40 0 -3px 0 inset;
}

@media screen and (max-width: 768px) {
    .info-role {
        grid-column: span 3;
    }
}

table {
    margin-bottom: 30px;
    border-radius: 10px;
    width: 100%;
    border-collapse: collapse;
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,rgba(45, 35, 66, 0.3) 0 7px 13px -3px,#D6D6E7 0 -3px 0 inset;
}

th, td {
    padding: 15px;
    text-align:left;
    border-bottom: 3px solid #eee;
}

tr:hover td {
    background-color: #FFF896;
}

tr:last-child td {
    border-bottom: none;
}

.members {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
}

.member {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,rgba(45, 35, 66, 0.3) 0 7px 13px -3px,#D6D6E7 0 -3px 0 inset;
    box-sizing: border-box;
}

.member:hover {
    background-color: #FFF896;
    box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #F8DC40 0 -3px 0 inset;
}

@media screen and (max-width: 768px) {
    .member {
        grid-column: span 3;
    }
}

/* #### Registration & Login #### */

.register-container, .login-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 30px 40px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
    position: relative;
}

.form-group {
    margin-bottom: 5px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: seagreen;
}

input:focus {
    border: 2px solid seagreen;
    outline: none;
    transition: 0.2s;
}

.alert {
    font-size: 30px;
    position: absolute;
    display: flex;
    height: 200px;
    width: 350px;
    top: 175px;
    left: -225px;
    border-radius: 10%;
    padding: 10px;
    text-align: center;
    align-items: center;
    color: #000;
    background-color: lightgray;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999999999999999999999999999999;
}

/* #### Modals and Messages #### */

.modal-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1000; 
    justify-content: center;
    align-items: center;
}

.modal-content {
    display: none; 
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    transform: translate(50%, -50%);
    font-size: 33px;
    cursor: pointer;
    top: 10px;
    right: 10px;
}

#status-message{
    text-align: left;
    margin-top: 10px;
    font-size: 1.1em;  
    color: #36395A;   
    padding: 5px;
    bottom: 0;
    transition: opacity 1s ease-out; 
}

#family-tree-modal, #contact-modal {
    width: 30vw; 
    height: 30vh;
    /* flex-direction: column; */
    justify-content: center;
    align-items: center;
    text-align: center;
    left: 33%;
    top: 33%;
}

#notification-modal {
    width: 80vw; 
    height: 80vh; 
    margin: 10vh auto; 
    padding: 20px;
    overflow-y: auto; 
    background-color: white; 
    border-radius: 15px; 
    position: relative; 
    z-index: 1000;
}

.notif-clear {
    margin-bottom: 20px;
}

#notification-list .btn {
    margin: 10px 0;
    padding: 10px;
    text-align: left;
}

/* Nicer Scrollbar for #notification-modal */
#notification-modal::-webkit-scrollbar {
    width: 10px;
}

#notification-modal::-webkit-scrollbar-track {
    background-color: #F4F4F4;
    border-radius: 10px;
}

#notification-modal::-webkit-scrollbar-thumb {
    background-color: #D6D6D6;
    border-radius: 10px;
}

#notification-modal::-webkit-scrollbar-thumb:hover {
    background-color: #A8A8A8;
}

@media screen and (max-width: 700px) {
    #notification-list .btn {
        margin: 10px 0;
        height: 65px;
        padding-left: 16px;
        padding-right: 16px;
        font-size: 16px;
    }
}

/* #### Requests #### */
.request-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-top: 10px;
    background-color: #FCFCFD;
    border-radius: 15px;
    border-width: 0;
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,rgba(45, 35, 66, 0.3) 0 7px 13px -3px,#D6D6E7 0 -3px 0 inset;
    box-sizing: border-box;
    color: #36395A;
}

.request-item p {
    margin: 0;
    flex: 1;
}

.request-item form {
    margin-left: 5px;
    display: inline-block;
}

.user-info h4 {
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.user-info p {
    margin-bottom: 20px;
}

.user-actions {
    display: flex;
    gap: 20px;
}

.action-form {
    margin: 0;
}

.accept-btn, .reject-btn {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 600; 
    transition: 0.3s;
}

.accept-btn {
    background-color: #4CAF50;
    color: white;
}

.reject-btn {
    background-color: #f44336;
    color: white;
}


.accept-btn:hover, .reject-btn:hover {
    transform: scale(1.05); 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
}

@media screen and (max-width: 1006px) { 
    .request-item {
        flex-direction: column;
        max-width: 100%; 
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
} 

/* #### User Management Styles #### */

#order_by_date {
    margin: 20px;
    padding: 10px;
    background-color: #FCFCFD;
    border-radius: 4px;
    border-width: 0;
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,rgba(45, 35, 66, 0.3) 0 7px 13px -3px,#D6D6E7 0 -3px 0 inset;
    box-sizing: border-box;
    color: #36395A;
}

.users-container {
    position: aboslute;
    max-width: 1000px; 
    margin: 0 auto;
}

.users-container h2 {
    margin: 60px 0px 10px 0px;
}

.management-toolbar {
    padding: 20px;
    text-align: center;
    /* margin: 20px; */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.management-container {
    margin: 20px 60px;
    padding: 20px;
}

.management-container h2 {
    text-align:center;
}

.users-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.users-list th, .users-list td {
    border: 1px solid #e0e0e0;
    padding: 10px;
    text-align: left;
}

.users-list th {
    background-color: #f5f5f5;
    font-weight: bold;
    text-align: center;
}

.users-list tr:hover {
    background-color: #f9f9f9;
}

.users-list td input[type="submit"] {
    padding: 5px 10px;
    font-size: 0.9em;
    margin-right: 5px;
}

/* Dropdown and Search bar style */

#filter_by_role, #family_code_search {
    margin: 20px 10px 20px 0px;
    padding: 10px;
    background-color: #FCFCFD;
    border-radius: 4px;
    border-width: 0;
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,rgba(45, 35, 66, 0.3) 0 7px 13px -3px,#D6D6E7 0 -3px 0 inset;
    box-sizing: border-box;
    color: #36395A;
}

#family_code_search {
    padding: 10px 20px;
}