/**
 * Student Area
 */

body.student-area {
    font-size: 14px;
}

.student-area-wrapper {
    display: flex;
}

.student-area-wrapper-right {
    flex-grow: 1;
}

.student-area-sidebar {
    background: var(--school-primary-color);
    color: #FFF;
    display: none;
    min-height: 100vh;
    padding: 1em 1.5em;
}

.student-area-sidebar-title,
.student-area-mobile-menu-title {
    font-family: var(--school-head-font-family);
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 1em;
}

.student-area-sidebar-title {
    text-align: center;
}

.student-area-sidebar-title > a,
.student-area-mobile-menu-title > a {
    text-decoration: none;
}

.student-area-topbar {
    align-items: center;
    border-bottom: 1px solid var(--school-primary-color);
    display: flex;
    font-size: .8rem;
    justify-content: space-between;
    gap: 1em;
    padding: 1em 2em;
}

.student-area-topbar-title {
    flex-grow: 1;
    line-height: 1.2;
}

.student-area-topbar-title > a {
    text-decoration: none;
}

.student-area-user {
    align-items: center;
    display: flex;
    gap: 1em;
    padding: 0 .75em;
}

.student-area-user-avatar {
    align-items: center;
    display: flex;
    width: 2em;
}

.student-area-user-avatar > svg {
    height: 100%;
}

.student-area-user-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.student-area-user-name > span {
    display: block;
    line-height: 1.2;
    margin-bottom: .25em;
}

.student-area-user-name > a {
    color: var(--school-primary-color);
    font-size: .9em;
    line-height: 1;
}


.student-area-nav a {
    text-decoration: none;
}

.student-area-nav > ul {
    padding: 0;
}

.student-area-nav > ul > li {
    margin-bottom: 1em;
}

.student-area-nav > ul > li > a {
    display: flex;
    font-size: .8rem;
    gap: 1em;
}

.student-area .mobile-menu__inner {
    background: var(--school-primary-color);
    color: #FFF;
    padding: 20px;
}

.student-area .mobile-menu__close {
    color: #FFF;
}


.student-area-footer {
    border-top: 1px solid var(--school-primary-color);
    font-size: .8rem;
    padding: 20px;
    width: 100%;
}

.student-area-main {
    flex-grow: 1;
    min-height: 100vh;
    padding: 1em;
}

.student-area-main > p {
    margin: 0 0 1em 0;
}

.student-area-main h1 {
    font-size: 1.8rem;
    margin: 0 0 .5em 0;
}

.student-area-main.student-area-login {
    margin: 40px auto;
    max-width: 600px;
}

.student-area-login-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    color: #721c24;
    font-size: .9rem;
    padding: .5em 1em;
}

.student-area-login .login-username,
.student-area-login .login-password {
    position: relative;
}

.student-area-login .login-username label,
.student-area-login .login-password label {
    background: #fff;
    border-radius: 10px;
    color: #888;
    font-size: .75rem;
    left: .75em;
    padding: 0 .75em;
    pointer-events: none;
    position: absolute;
    top: 0;
    transform: translateY(-50%);
    transition: all .2s ease;
}

.student-area-login .login-username input,
.student-area-login .login-password input {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: .75em;
    width: 100%;
}

.student-area-login .login-username input:focus,
.student-area-login .login-password input:focus {
    border: none;
    outline: 2px solid var(--school-primary-color);
}

.student-area-login .login-remember > label {
    cursor: pointer;
    font-size: .9rem;
}

.student-area-login .login-submit {
    display: flex;
    justify-content: center;
}

.student-area-login .login-submit > input {
    background-color: var(--school-button-bg-color);
    border: 1px sold var(--school-button-bg-color);
    border-radius: 1em;
    color: #FFF;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 300;
    padding: .5em 2em;
}

.student-area-login .login-submit > input:hover {
    background-color: var(--school-button-bg-color-hover);
    border: 1px sold var(--school-button-bg-color-hover);
}

/**
 * Compte (Account) page
 */

.student-area-compte-section {
    max-width: 400px;
}

.student-area-compte-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1em;
}

.student-area-message {
    border-radius: 10px;
    font-size: .9rem;
    margin-bottom: 1em;
    padding: .75em 1em;
}

.student-area-message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.student-area-message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.student-area-form-field {
    margin-bottom: 1em;
    position: relative;
}

.student-area-form-field label {
    background: #fff;
    border-radius: 10px;
    color: #888;
    font-size: .75rem;
    left: .75em;
    padding: 0 .75em;
    pointer-events: none;
    position: absolute;
    top: 0;
    transform: translateY(-50%);
}

.student-area-form-field input {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: .75em;
    width: 100%;
}

.student-area-form-field input:focus {
    border: none;
    outline: 2px solid var(--school-primary-color);
}

.student-area-form-submit {
    display: flex;
    justify-content: center;
    margin-top: 1.5em;
}

.student-area-form-submit button {
    background-color: var(--school-button-bg-color);
    border: 1px solid var(--school-button-bg-color);
    border-radius: 1em;
    color: #FFF;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 300;
    padding: .5em 2em;
}

.student-area-form-submit button:hover {
    background-color: var(--school-button-bg-color-hover);
    border-color: var(--school-button-bg-color-hover);
}

.student-area-table {
    border-collapse: collapse;
    width: 100%;
}

.student-area-table > thead {
    display: none;
}

.student-area-table > tbody > tr {
    border-bottom: 1px solid #DDD;
    display: flex;
    flex-direction: column;
    gap: .5em;
    padding: 3em 0;
}

.student-area-table > tbody > tr:last-child {
    border-bottom: none;
}

.student-area-table > tbody > tr > td {
    display: flex;
    padding: .2em 0;
}

.student-area-breadcrumb {
    color: #888;
    font-size: .8rem;
    margin-bottom: 1em;
}

.student-area-breadcrumb > ul {
    display: flex;
    gap: .5em;
    list-style-type: none;
    padding: 0;
}

.student-area-breadcrumb > ul > li::after {
    content: ">";
    margin-left: .5em;
}

.student-area-breadcrumb > ul > li:last-child::after {
    content: none;
}

.student-area-breadcrumb > ul > li > a {
    color: inherit;
    text-decoration: none;
}

.student-area-breadcrumb > ul > li > a:hover {
    color: var(--school-primary-color);
    text-decoration: underline;
}

.download-link {
    align-items: center;
    background-color: var(--school-button-bg-color);
    border: 1px solid var(--school-button-bg-color);
    border-radius: 1em;
    color: #FFF;
    cursor: pointer;
    display: inline-flex;
    font-size: .8rem;
    justify-content: center;
    gap: 1em;
    padding: .5em 2em;
    text-decoration: none;
}

.dashboard-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.dashboard-section {
    background: var(--school-bg-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 2em;
    width: 100%;
}

.dashboard-section h2 {
    font-size: 1.4rem;
    margin-bottom: 1em;
}

.dashboard-section p {
    margin-bottom: 0;
}

.dashboard-section ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.dashboard-section ul > li {
    align-items: center;
    display: flex;
    gap: .5em;
    padding: .5em 0;
}

.dashboard-section ul > li.align-items-start {
    align-items: start;
    gap: 1em;
}

.dashboard-section .dashicons {
    color: var(--school-primary-color);
}

.dashboard-section ul > li a {
    color: var(--school-body-font-color);
    text-decoration: none;
}

.dashboard-section ul > li a:hover {
    color: var(--school-primary-color);
    text-decoration: underline;
}

@media (min-width: 768px) {

    .student-area-main {
        flex-grow: 1;
        min-height: 100vh;
        padding: 1em 2em;
    }

    .student-area-main h1 {
        font-size: 1.8rem;
        margin: 0 0 .5em 0;
    }

    .student-area-user {
        display: flex;
        margin-bottom: 0;
    }

    .student-area-sidebar {
        display: block;
    }

    .student-area-table > thead {
        display: table-header-group;
    }

    .student-area-table > tbody > tr {
        display: table-row;
    }

    .student-area-table > thead > tr > th {
        border-bottom: 1px solid #DDD;
        font-size: .9rem;
        font-weight: 500;
        padding: .5em 0;
        text-align: left;
    }

    .student-area-table > tbody > tr > td {
        border-bottom: 1px solid #DDD;
        display: table-cell;
        font-size: .9rem;
        padding: 1em 0;
        text-align: left;
    }

    .student-area-table > tbody > tr > td::before {
        display: none;
    }

    .dashboard-section {
        width: 45%;
    }
}
