* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f6fa;
    color: #2c3e50;
    line-height: 1.6;
}

/* ALERTS */
.alert {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert.erro {
    background: #ffeaa7;
    border: 1px solid #fdcb6e;
    color: #e17055;
}

.alert.sucesso {
    background: #55efc4;
    border: 1px solid #00b894;
    color: #00664d;
}

/* TELA DE LOGIN */
#telaLogin {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.login-container {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.login-container h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.login-container p {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #34495e;
}

.login-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.login-form input:focus {
    border-color: #667eea;
    outline: none;
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: transform 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
}

.login-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
}

.login-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
}

.login-link:hover {
    text-decoration: underline;
}

/* CONTEÚDO PRINCIPAL */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #34495e;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e1e8ed;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus {
    border-color: #667eea;
    outline: none;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: transform 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.equipamento-item {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.equipamento-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.equipamento-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.status-disponivel {
    color: #27ae60;
    font-weight: bold;
}

.status-baixo {
    color: #e74c3c;
    font-weight: bold;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* USER SECTION */
.user-section {
    margin-top: 1rem;
}

.user-info {
    background: rgba(255,255,255,0.9);
    color: #2c3e50;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: inline-block;
}

.btn-logout {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 10px;
    text-decoration: none;
    display: inline-block;
}

.btn-logout:hover {
    background: #c0392b;
}

/* MODAIS */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.close:hover {
    color: #000;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .login-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
}

/*Rodapé*/
.footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    background: #222;
    color: #fff;
    font-size: 14px;
    border-top: 3px solid #3498db;
}
.footer strong {
    color: #3498db;
}
