/* =========================
   GLOBAL
========================= */

* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    margin: 0;
    background: #f4f5f7;
    color: #333;
}


/* =========================
   LOGIN
========================= */

.login-box {

    width: 350px;

    background: white;

    padding: 35px;

    border-radius: 10px;

    box-shadow: 0 5px 20px rgba(0,0,0,.15);

    position: absolute;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

    text-align: center;

}


.login-box img {

    width: 180px;

    margin-bottom: 25px;

}


input {

    width: 100%;

    height: 45px;

    padding: 0 15px;

    margin: 10px 0;

    border: 1px solid #ddd;

    border-radius: 5px;

    font-size: 15px;

    outline: none;

}


input:focus {

    border-color: #673ab7;

}


button {

    width: 100%;

    height: 45px;

    margin-top: 15px;

    background: #673ab7;

    color: white;

    border: none;

    border-radius: 5px;

    cursor: pointer;

    font-size: 16px;

}


button:hover {

    background: #512da8;

}


.mensagem {

    color: #e53935;

    margin-top: 15px;

}



/* =========================
   DASHBOARD
========================= */


.header {

    height: 60px;

    background: #673ab7;

    color: white;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 25px;

}


.header h1 {

    margin: 0;

    font-size: 22px;

}



.header button {

    width: auto;

    margin: 0;

    background: white;

    color: #673ab7;

    padding: 10px 20px;

}



.sidebar {

    position: fixed;

    top: 60px;

    left: 0;

    width: 230px;

    height: calc(100vh - 60px);

    background: white;

    box-shadow: 0 0 10px #ddd;

}



.sidebar a {

    display: block;

    padding: 15px 20px;

    color: #555;

    text-decoration: none;

    cursor: pointer;

}


.sidebar a:hover {

    background: #673ab7;

    color: white;

}



.content {

    margin-left: 230px;

    padding: 30px;

}



.cards {

    display: flex;

    gap: 20px;

    flex-wrap: wrap;

}



.card {

    background: white;

    width: 250px;

    padding: 25px;

    border-radius: 10px;

    box-shadow: 0 3px 10px rgba(0,0,0,.1);

}



.card h2 {

    margin: 0;

    color: #673ab7;

    font-size: 32px;

}


.card p {

    color: #777;

}



/* =========================
   TABELAS
========================= */


table {

    width: 100%;

    background: white;

    border-collapse: collapse;

    margin-top: 25px;

    border-radius: 8px;

    overflow: hidden;

}


th {

    background: #673ab7;

    color: white;

    padding: 12px;

    text-align: left;

}


td {

    padding: 12px;

    border-bottom: 1px solid #eee;

}


tr:hover {

    background: #f7f7f7;

}



/* =========================
   MOBILE
========================= */

@media(max-width:768px){

    .sidebar {

        width: 70px;

    }


    .content {

        margin-left: 70px;

    }


    .card {

        width: 100%;

    }


}