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

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background-color: white;
}

header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px darkgray solid;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: white;
    width: 100%;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px; 
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

header .logo span {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-center nav {
    display: flex;
    gap: 15px;
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-actions nav {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.nav-actions .profile {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: white;
    color: rgb(0, 0, 0);
    padding: 10px 15px;
    margin: 5px 5px 5px 0px;
    border-radius: 5px;
    border: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    gap: 10px;
}

.nav-actions .profile:hover {
    background-color: #e7e7e7;
}

.nav-actions .profile img {
    width: 15px;
    height: 15px;
}

.nav-actions .exit {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: white;
    color: rgb(233, 55, 55);
    padding: 10px 15px;
    margin: 5px 5px 5px 0px;
    border-radius: 5px;
    border: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    gap: 10px;
}

.nav-actions .exit:hover {
    background-color: #f3e5e5;
}

.nav-actions .exit img {
    width: 15px;
    height: 15px;
}

a {
    text-decoration: none;
    color: black;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 15px;
}

.logo img {
    width: 30px;
    height: 30px;
}

.main-container {
    min-height: 100%;
    padding: 110px 20px 20px 20px; 
    max-width: 1600px; 
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.title-add-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.title-add-container h1 {
    margin: 0;
    font-size: 30px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.title-add-container button {
    display: flex;
    align-items: center;
    background-color: black;
    color: white;
    padding: 10px 20px;
    gap: 10px;
    border-radius: 5px;
    border: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.title-add-container button:hover {
    background-color: #1a1919;
}

.title-add-container button img {
    width: 15px;
    height: 15px;
}

.courses-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.courses-row {
    display: flex;
    justify-content: space-start;
    align-items: stretch;
    width: 100%;
    gap: 20px;
}

.course-card {
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid lightgray;
    padding: 20px;
    border-radius: 5px;
    max-width: 500px;
    width: 100%;
    margin: 0;
    gap: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.course-card:hover {
    transform: scale(1.02);
}

.course-card .title-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.course-card .title-card h2 {
    font-size: 20px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.course-card .title-card .card-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.course-card .title-card img {
    width: 30px;
    height: 30px;
    border: 1px solid lightgray;
    border-radius: 5px;
    padding: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.course-card .title-card img:hover {
    background-color: rgb(236, 236, 236);
}

.course-card span {
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: rgb(138, 138, 138);
}

.action-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.action-card button {
    background-color: #f0f0f0;
    padding: 10px 20px;
    border-radius: 5px;
    color: black;
    transition: background-color 0.3s;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    border: 0;
}

.action-card button:hover {
    background-color: rgb(235, 235, 235);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.creation-modal {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    background-color: white;
    margin: 150px auto;
    padding: 20px;
    gap: 25px;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 20px;
    margin: 0;
}

.close {
    font-size: 24px;
    cursor: pointer;
    color: rgb(138, 138, 138);
}

.close:hover {
    color: rgb(0, 0, 0);
}

.creation-modal p {
    font-weight: 400;
    color: rgb(138, 138, 138);
    font-size: 14px;
}

.item-course {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.item-course h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
}

.item-course input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-weight: 400;
    font-size: 14px;
}

.item-course input:focus {
    outline: none;
    border-color: rgb(102, 100, 100);
}

.options-add-close {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    gap: 10px;
}

.options-add-close .create {
    background-color: black;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    border: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.options-add-close .create:hover {
    background-color: #313030;
}

.options-add-close .cancel {
    background-color: rgb(235, 235, 235);
    color: black;
    padding: 10px 20px;
    border-radius: 5px;
    border: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.options-add-close .cancel:hover {
    background-color: #f0f0f0;
}

.confirmation-delete-container {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    background-color: white;
    margin: 150px auto;
    padding: 20px;
    gap: 15px;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.confirmation-delete-container .confirmation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.confirmation-delete-container h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    padding: 20px;
}

.confirmation .delete-btn {
    padding: 10px 20px;
    border-radius: 5px;
    background-color: black;
    color: white;
    transition: background-color 0.3s;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    border: 0;
}

.confirmation .delete-btn:hover {
    background-color: #302f2f;
}

.confirmation .cancel-delete-btn {
    background-color: rgb(235, 235, 235);
    padding: 10px 20px;
    border-radius: 5px;
    color: black;
    transition: background-color 0.3s;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    border: 0;
}

.confirmation .cancel-delete-btn:hover {
    background-color: #f0f0f0;
}

#error-message {
    font-family: 'Inter', sans-serif;
    color: red;
    font-size: 12px;
    margin-top: 5px;
    text-align: left;
    font-weight: 500;
}

@media (max-width: 768px) {
    *{
        text-align: center;
    }
    body {
        width: 100%;
    }

    header {
        display: flex;
        flex-direction: column;
    }

    .header-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0 10px;
    }
    .nav-center {
        white-space: nowrap;
    }

    .main-container {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding:  170px 30px 30px 30px;
        width: 100%;
        margin: 0;
    }

    .courses-row {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .modal .creation-modal, .confirmation-delete-container {
        margin-right: auto;
        margin-left: auto;
        width: 80%;
    }
}