* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.sidebar {
    width: 250px;
    background-color: #000000;
    color: #fff;
    padding: 20px 0;
    position: fixed;
    height: 100%;
    overflow-y: auto;
}

.logo-area {
    text-align: center;
    padding: 20px;
}

.admin-logo {
    max-width: 150px;
    height: auto;
}

.sidebar h2 {
    font-size: 1.2rem;
    text-transform: uppercase;
    padding: 20px;
    color: #caa54b;
    font-weight: 500;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin: 5px 0;
}

.sidebar ul li a {
    display: block;
    padding: 15px 20px;
    color: #d1d5db;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background-color: #caa54b;
    color: #fff;
}

.content {
    margin-left: 250px;
    padding: 40px;
    width: calc(100% - 250px);
    background-color: #fff;
}

h1 {
    font-size: 2rem;
    color: #1a2a44;
    margin-bottom: 30px;
    font-weight: 700;
}

.section {
    margin-bottom: 40px;
}

h2 {
    font-size: 1.5rem;
    color: #1a2a44;
    margin-bottom: 20px;
    font-weight: 500;
}

.table-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: left;
    font-size: 0.9rem;
    color: #4b5e77;
}

th {
    background-color: #f8fafc;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #1a2a44;
    cursor: pointer;
    transition: background-color 0.3s;
}

th:hover {
    background-color: #e2e8f0;
}

td {
    border-bottom: 1px solid #e2e8f0;
}

td a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

td a:hover {
    text-decoration: underline;
}

.file-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.file-box:hover {
    background-color: #e2e8f0;
}

.file-box span {
    font-size: 1.2rem;
}

.graphs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.graph-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.graph-card h3 {
    font-size: 1.1rem;
    color: #1a2a44;
    margin-bottom: 15px;
    font-weight: 500;
}

.graph-placeholder {
    height: 150px;
    background-color: #f8fafc;
    border-radius: 4px;
}

.add-client-btn {
    background-color: #3b82f6;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.3s;
}

.add-client-btn:hover {
    background-color: #2563eb;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: #4b5e77;
    cursor: pointer;
}

.modal-content h3 {
    font-size: 1.3rem;
    color: #000000;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #19263b;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #273547;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
}

.modal-content button[type="submit"] {
    background-color: #3b82f6;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-content button[type="submit"]:hover {
    background-color: #2563eb;
}

.table-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.table-controls input[type="text"] {
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 200px;
    transition: border-color 0.3s;
}

.table-controls input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
}

.table-controls select {
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
}

.table-controls select:focus {
    outline: none;
    border-color: #3b82f6;
}

.edit-btn {
    background-color: #4CAF50;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

.edit-btn:hover {
    background-color: #45a049;
}

/* Estilos para a página de login do administrador */
.login-container {
    max-width: 400px;
    width: 100%;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgb(0, 0, 0);
    margin: auto;
    animation: fadeIn 0.5s ease-in-out;
}

.login-header {
    text-align: center;
    margin-bottom: 20px;
}

.login-header .logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.login-form .input-group {
    margin-bottom: 20px;
}

.login-form .input-group label {
    display: block;
    font-size: 0.9rem;
    color: #000000;
    margin-bottom: 5px;
}

.login-form .input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #000000;
    border-radius: 4px;
    font-size: 1rem;
    color: #000000;
    transition: border-color 0.3s ease;
}

.login-form .input-group input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 5px rgb(0, 0, 0);
}

.login-button {
    width: 100%;
    padding: 12px;
    background-color: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.login-button:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

.forgot-password {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
}

.forgot-password a {
    color: #000000;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}