/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('assets/images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.termos-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    border-color: #030c5f;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 1000px;
    text-align: center;
    margin: 1rem;
}

.login-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    border-color: #030c5f;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
    margin: 1rem;
}

.logo {
    margin-bottom: 1.5rem;
}

.logo img {
    max-width: 150px;
    max-height: 100px;
    width: auto;
    height: auto;
}

h1 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

h2 {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: normal;
}

.erro {
    color: #d9534f;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: bold;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.password-container {
    position: relative;
}

.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    padding: 5px;
}

.forgot-password {
    display: block;
    text-align: right;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #2989d8;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.termos {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.termos input {
    width: auto;
    margin-right: 10px;
}

.termos label {
    margin-bottom: 0;
    font-weight: normal;
    color: #555;
}

.termos a {
    color: #2989d8;
    text-decoration: none;
}

.termos a:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 0.8rem;
    background-color: #030c5f;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.btn-login:hover {
    background-color: #1e5799;
}

/* Responsividade */
@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.1rem;
    }
    
    .logo img {
        max-width: 120px;
    }
}

/* Estilos para o dashboard */
.dashboard-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-logout {
    padding: 0.5rem 1rem;
    background-color: #d9534f;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-logout:hover {
    background-color: #c9302c;
}

.stats-card {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 200px;
}

.stat-item h3 {
    color: #555;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 2rem;
    font-weight: bold;
    color: #2989d8;
}

.actions {
    margin-bottom: 2rem;
    text-align: right;
}

.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-add:hover {
    background-color: #218838;
}

.macs-list {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.macs-list h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #555;
}

tr:hover {
    background-color: #f5f5f5;
}

.actions-cell {
    white-space: nowrap;
}

.btn-edit, .btn-delete {
    display: inline-block;
    padding: 0.5rem;
    color: white;
    border-radius: 4px;
    margin-right: 0.5rem;
    text-decoration: none;
}

.btn-edit {
    background-color: #ffc107;
}

.btn-delete {
    background-color: #dc3545;
}

.btn-edit:hover, .btn-delete:hover {
    opacity: 0.8;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #777;
}

.mensagem {
    color: #28a745;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
}

/* Responsividade */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .user-info {
        justify-content: center;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
    
    .stat-item {
        min-width: 100%;
    }
}
