* {
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: #D9D9D9;
    font-family: "Inter", sans-serif;
}

/*? ---------- Reusable components ---------- */
.button_primary {
    border: none;
    background-color: #495CBF;
    padding: 12px;
    color: white;
    border-radius: 8px;
    box-shadow: 4px 4px 15px #283575;
}

/*? top section */
.top-section {
    width: 100%;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.top-section-wrapper {
    display: flex;
    justify-content: space-between;
}

#return-button {
    visibility: hidden;
    border: none;
    background-color: transparent;
}

#return-button img {
    width: 30px;
}

.tsg-logo {
    width: 80px;
}


/*? main sections */
#main-section-container {
    display: flex;
    flex-direction: column;
}

#addPB-button {
    align-self: center;
    margin-bottom: 24px;
}

#shortCourse-section,
#longCourse-section {
    display: flex;
    flex-direction: column;
}

#shortCourse-new-container-wrapper,
#longCourse-new-container-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
}

.course-span {
    border-top: 1px solid rgb(43, 43, 43);
    border-bottom: 1px solid rgb(43, 43, 43);
    text-align: center;
    font-weight: bold;
}

.newContainer {
    margin: 8px;
    padding: 12px;
    width: 130px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #94B9FF;
    overflow: hidden;
}

.buttonWrapper {
    display: flex;
    flex-direction: row;
}

/*? add PB section */
#addPb-section-container {
    display: none;
    flex-direction: column;
    align-items: center;
}

#addPb-section-container label,
#edit-time-container label {
    margin-top: 12px;
    margin-bottom: 4px;
    font-size: large;
}

#addPb-section-container select,
#addPb-section-container input,
#edit-time-container input {
    height: 32px;
    width: 50%;
    border-radius: 8px;
    border: 1px solid #283575;
    padding-left: 12px;
    font-size: 16px;
}

#time-input-container {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

#time-input-container input {
    width: 70px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #283575;
    padding-left: 12px;
    font-size: 16px;
}

#time-input-container label {
    font-size: large;
    margin-top: 0;
    margin-bottom: 4px;
    display: block;
}

.edit-button,
.delete-button {
    padding: 6px;
    border: none;
    border-radius: 6px;
    background-color: #2C2C2C;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 16px;
    margin: 4px;
}

.edit-button {
    background-image: url('assets/edit-icon.svg');
}

.delete-button {
    background-image: url('assets/delete-icon.svg');
}



/*? profile section*/
#profile-section-container {
    display: none;
    flex-direction: column;
    align-items: center;
}

#profile-section-container button {
    height: 32px;
    border: none;
    color: #f1f1f1;
    border-radius: 8px;
    box-shadow: 4px 4px 15px #141c46;
    padding: 8px;
}

#profile-section-container p {
    margin: 12px;
    font-size: 14px;
}

#deleteData-button {
    background-color: #c21111a6;
}

#downloadData-button {
    background-color: rgba(79, 158, 96, 0.726);
}

#profile-section-container img {
    width: 300px;
}

/*? edit time section*/
#edit-time-container {
    display: none;
    flex-direction: column;
    align-items: center;
}

/*? bottom navbar */
.navbar {
    position: fixed;
    z-index: 5;
    bottom: 0px;
    width: 100%;
    height: 70px;
    background-color: #495CBF;
    padding: 8px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.nav-buttons {
    width: 80px;
    background-color: transparent;
    border: none;
}

.nav-buttons img {
    width: 40px;
}

/*?  Cookie Banner*/
#cookie-banner {
    position: fixed;
    bottom: -100px;
    left: 10px;
    right: 10px;
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out, bottom 0.5s ease-out;
}

#cookie-banner button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

#cookie-banner button:hover {
    background: #0056b3;
}

#cookie-banner.show {
    bottom: 100px;
    opacity: 1;
    pointer-events: auto;
}

@keyframes slide-in {
    from {
        bottom: -100px;
    }
    to {
        bottom: 10px;
    }
}