/* signup button */
.sign-up {
    background-color: #aaeb54;    
}

/* dropdown menu button */
.custom-dropdown .navbar-link::after {
    border-color: #aaeb54;
}

/* site navbar font */ 
.navbar-item {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    text-decoration: none;
}

.navbar-link, .button {
    text-decoration: none;
}

.title {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
}

/* log in page css */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: 80px;
}

.login-blob {
    background: #2e44cc;
    color: white;
    padding: 45px;  
    width: 500px;
    height: 570px;
    border-radius: 77% 38% 55% 45% / 70% 40% 50% 37%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.underline {
    width: 80px;
    height: 5px;
    background: #8ac926;
    margin: 5px 0 30px;
}

.login-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 15px;
    align-items: stretch;
}

.login-form label {
    text-align: left;
    align-self: flex-start;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: -8px;
    margin-left: 30px;
}

.login-form input {
    width: 90%;
    padding: 10px;
    border-radius: 10px;
    margin-left: 30px;
}

.login {
    background-color: #aaeb54;
}

.no-account {
    font-weight: 300;
}
/* end login css */

/*sign up css*/
.signup-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 50px;
    padding: 80px;
}

.signup-blob {
    background: #8ac926;
    color: white;
    padding: 60px;
    width: 100%;
    max-width: 900px;
    min-width: 80vh;
    /* border-radius: 39% 80% 52% 55% / 40% 55% 45% 50%; */
    border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.underline-signup {
    width: 200px;
    height: 5px;
    background: #2e44cc;
    margin: 5px 0 30px;
}

.signup-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
}

.name-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%
}

.name-input {
    flex: 1;
    padding-left: 45px;
}

.name-input input {
    width: 45%;
    padding: 10px;
    box-sizing: border-box;
    
}

.signup-form input, .signup-form select {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: none;
}

.form-row {
    width: 100%;
    margin-left: 55px;
}

.grade {
    width: 20%;
}

.textarea {
    border: 2px solid black;
    resize: none;
    overflow: auto;
}
/*signup form css end*/

/*events admin page buttons*/
.btn-approve {
    background-color: #4CAF50; 
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: bold;
}

.btn-reject {
    background-color: #e74c3c; 
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: bold;
}

.btn-edit {
    background-color: #2e44cc;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 700;
}

/*div class for event admin buttons*/
.actions {
    padding: 8px;
    border-radius: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.actions a {
    display: inline;
}
/*event admin page buttons end*/

.actions form {
    display: inline;
}

.events-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
}

/*page titles*/
.title {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    color: #2e44cc;
    margin-bottom: 20px;
}


.section {
    width: 100%;
    max-width: 1500px;
}

/*custom heading*/
.header {
    background-color: #aaeb54;
    color: #2e44cc;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    padding: 12px 20px;
    font-size: 2rem;
    border-radius: 4px 4px 0 0;
}

/*custom h2*/
.header-2 {
    background-color: #aaeb54;
    color: #2e44cc;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    padding: 8px 20px;
    font-size: 1.5rem;
    border-radius: 4px 4px 0 0;
    margin-top: 20px;
}


.past-events-collapse summary {
    background-color: #f0f0f0;
    color: #666;
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    padding: 8px 20px;
    font-size: 1.2rem;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    margin-top: 20px;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.resource:hover {
    background-color: #e0e0e0;
    transform: translateY(-1px);
}

.resource span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2e44cc;
    cursor: pointer;
    text-decoration: underline;
}


.arrow {
    font-size: 24px;
    color: #2e44cc;
    text-decoration: none;
}


.actions {
    display: flex;
    gap: 10px;
}


.status {
    font-weight: bold;
    text-transform: capitalize;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #333;
}

.hub-button {
    background-color: #8ac926;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 24px;
    color: #2e44cc;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.hub-button:hover {
    transform: scale(1.05);
}

.homepage-wrapper {
    width: 100vw;
    background-color: transparent;
    margin-left: calc(50% - 50vw);
}

.homepage-info {
    background-color: #2e44cc;
    width: 90%;
    padding: 90px 70px;
    margin: 40px auto;
    color: white;
    text-align: center;
    font-weight: 500;
    max-width: 1200px;
    clip-path: ellipse(50% 45% at 50% 50%);
}


.homepage-info p {
    font-size: 18px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.homepage-info h3 {
    padding: 15px;
    text-decoration: underline; 
}

/* Resources Directory Styles */
.resources-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.resources-container .section {
    width: 100%;
}

.resources-container .header {
    background-color: #aaeb54;
    color: #2e44cc;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    padding: 12px 20px;
    font-size: 1.8rem;
    border-radius: 4px 4px 0 0;
}

.resources-container .list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 0;
}

.resource a {
    display: block;
    /*background-color: #f0f0f0;*/
    color: #2e44cc;
    /*padding: 15px 20px;*/
    font-weight: 600;
    border-radius: 4px;
    /*border: 1px solid #ddd;*/
    font-family: "Open Sans", sans-serif;
    text-decoration: none;
    transition: background-color 0.3s;
}

.resource a:hover {
    background-color: #fafafa;
}

.user-card {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 18px 22px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    font-family: "Open Sans", sans-serif;
    margin-top: 10px;
}

  .controls-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    margin-top: 10px;
  }

  #globalSearch {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 4px;
  }

  .result-count {
    font-size: 0.85rem;
    color: #555;
  }

  .clear-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
    cursor: pointer;
  }

  .user-card.hidden {
    display: none;
  }

  .highlight {
    background: #ffe57a;
    padding: 0 1px;
  }

.user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.user-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2e44cc;
    margin-bottom: 10px;
}

.user-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 20px;
    font-size: 0.95rem;
}

.edit-user-info {
    font-size: medium;
    color: gray;
    font-style: italic;
}

.edit-user-info:hover{
    color:#aaeb54;
}

/*profile page styling start*/
.profile-body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
}

.profile-container {
    max-width: 600px;
    margin: 40px auto;
    background: #ffffff;
    padding: 40px 100px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}
        
.profile-header {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.profile-header h1 {
    margin: 0;
    font-size: 30px;
}

.profile-header .username {
    color: #777;
    font-size: 14px;
}

.profile-section {
    margin-bottom: 16px;
}

.profile-info {
    font-size: 19px;
    font-weight: 600;
    color: black;
    text-decoration: underline;
}

.profile-field {
    display: flex;
    margin-bottom: 6px;
}

.profile-label {
    width: 160px;
    font-weight: bold;
    color: #555;
}

.profile-value {
    flex: 1;
    color: #222;
}

/*for middle name being different style than rest of name*/
.muted {
    color: #999;
    font-style: italic;
}
/*profile page styling end + profile picture on profile page, styling right below*/

.profile-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
    margin-bottom: 12px;
}

/*blank profile picture*/
.profile-picture-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #aaa;
}

/*profile image in the navbar, different styling than on the profile page*/
.navbar-picture {
    height: 32px;
    width: 32px;
    min-width: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    object-fit: cover;
}

.navbar-profile-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Success message */
.flashes li.success {
    background-color: rgb(171, 235, 77);
    color:#2e44cc;
}

/* Error message */
.flashes li.error {
    background-color: red;
}

/* edit user profile information start*/
.edit-user-blob {
    background: #8ac926;
    color: white;
    width: 100%;
    max-width: 900px;
    min-width: 300px;
    padding: 30px;
    border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%;
    flex-direction: column;
    justify-content: center;
    margin: auto;
}

.edit-profile-form {
    display: grid;
    grid-template-columns: 160px 1fr;
    max-width: 500px;
    margin: 0 auto;
}

.edit-user-blob h1 {
    text-align: center;
    margin-top: 50px;
}

.edit-profile-form button {
    width: 200px;
    padding: 5px;
    font-weight: 500;
    margin: 20px;
    background-color: #2e44cc;
    color: white;
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 15px;
}

.edit-profile-form button:hover {
    background-color: #1e33b8;
    color: white;
}

.edit-profile-form label {
    display: block;
    width: 100%;
    margin-bottom: 2px;
}

.edit-profile-form input {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

.edit-profile-form input[type="file"] {
    grid-column: 2;
    display: block;
    margin-top: 5px;
}

.edit-profile-form span {
    grid-column: 2;
    display: block;
    margin-bottom: 5px;
}

.edit-profile-form img {
    grid-column: 2;
    display: block;
    margin-bottom: 5px;
}

.change-password {
    background-color: #8ac926;
    font-size: 12px;
}

.edituser-button-cancel {
    grid-column: 2;
    display: block;
    width: 200px;
    padding: 5px;
    font-weight: 500;
    margin: 20px;
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 5px;
    border-radius: 10px;
}

.edituser-button-cancel:hover {
    background-color: #e0e0e0;
}

.back-button {
    display: block; 
    padding: 12px;
    max-width: 155px;
    background-color:#2e44cc;
    color:#ffffff;
    border-radius: 10px;
    border: solid 1px;
    text-decoration: none;
}

.back-button:hover {
    background-color: #1e33b8;
}
/*edit user profile info end*/