/* Estilos gerais do site Condomínio Pena Branca */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #4a4a4a 0%, #000000 100%);
    min-height: 100vh;
}

/* ========== PÁGINA INICIAL ========== */

.container-inicial {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.logo-container {
    text-align: center;
    margin-bottom: 50px;
}

.logo-container h1 {
    color: white;
    font-size: 3em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.logo-container p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2em;
}

.botoes-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.botao-acesso {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #000000;
}

.botao-acesso:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.botao-acesso i {
    font-size: 3em;
    margin-bottom: 15px;
    color: #d4af37;
}

.botao-acesso span {
    font-size: 1em;
    font-weight: 600;
    text-align: center;
    padding: 0 5px;
}

/* ========== MODAL DE LOGIN (página inicial - customizado) ========== */

.modal-login {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-login .modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: slideDown 0.3s;
}

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

.modal-login .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-login .modal-header h2 {
    font-size: 1.5em;
    margin: 0;
}

.modal-login .close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.modal-login .close:hover {
    background: rgba(255,255,255,0.2);
}

.modal-login .modal-body {
    padding: 30px;
}

/* ========== FORMULÁRIOS ========== */

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

/* Campo de senha com olho */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding: 12px;
    padding-right: 45px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.password-wrapper input:focus {
    outline: none;
    border-color: #667eea;
}

.password-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    font-size: 1.2em;
    transition: color 0.3s;
    z-index: 10;
}

.password-wrapper i:hover {
    color: #667eea;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
}

.esqueci-senha {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #667eea;
    text-decoration: none;
    font-size: 0.9em;
}

.esqueci-senha:hover {
    text-decoration: underline;
}

.error-message {
    background-color: #fee;
    color: #c33;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: none;
}

/* ========== CUSTOMIZAÇÕES PARA BIBLIOTECAS ========== */

/* Quill Editor */
.ql-container {
    min-height: 200px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ql-editor {
    min-height: 180px;
}

/* Flatpickr Calendar */
.flatpickr-calendar {
    z-index: 99999 !important;
}

/* ========== RESPONSIVIDADE ========== */

@media (max-width: 768px) {
    .botoes-container {
        gap: 20px;
    }
    
    .botao-acesso {
        width: 120px;
        height: 120px;
    }
    
    .botao-acesso i {
        font-size: 2.5em;
    }
}

/* HEADER NOVO - CONDOMÍNIO */

.header-top-bar {
    background: linear-gradient(135deg, #0062ff, #00b4d8);
    color: #fff;
}

.header-logo {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 1.2rem;
}

.header-condominio-label {
    font-size: 0.65rem;
    opacity: 0.8;
    letter-spacing: .08em;
}

.header-condominio-nome {
    font-size: 1rem;
    line-height: 1.1;
}

.header-user-bar {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.header-avatar {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, .15);
}

.header-badge-usuario {
    background-color: #e3f2fd;
    color: #0d47a1;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}
