* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== ESTILOS GERAIS ===== */
body {
    background: #f8f9fa;
    min-height: 100vh;
    color: #333;
    line-height: 1.5;
}

.app-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */
.app-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.logo-icon {
    font-size: 2.5rem;
}

.logo h1 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 400;
}

.app-subtitle {
    color: #7f8c8d;
    font-size: 1rem;
}

/* ===== CONTEÚDO ===== */
.app-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.welcome-card {
    background: white;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e1e8ed;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.welcome-card h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 500;
}

.welcome-card p {
    color: #7f8c8d;
    font-size: 0.95rem;
}

/* ===== BOTÕES ===== */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-btn {
    padding: 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.app-btn.primary {
    background: #2c3e50;
    color: white;
}

.app-btn.primary:hover {
    background: #34495e;
}

.app-btn.secondary {
    background: white;
    color: #2c3e50;
    border: 1px solid #bdc3c7;
}

.app-btn.secondary:hover {
    background: #f8f9fa;
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.feature-item {
    background: white;
    padding: 20px 10px;
    border-radius: 10px;
    text-align: center;
    color: #2c3e50;
    border: 1px solid #e1e8ed;
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.feature-item h3 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.feature-item p {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.simple-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.simple-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e1e8ed;
    font-size: 0.95rem;
    color: #2c3e50;
}

/* ===== FORMULÁRIOS ===== */
.form-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin: 20px 0;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 1.4rem;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #bdc3c7;
    border-radius: 8px;
    font-size: 15px;
    transition: border 0.2s ease;
    background: white;
}

.form-group input:focus {
    border-color: #95a5a6;
    outline: none;
}

.form-btn {
    width: 100%;
    padding: 14px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.form-btn:hover {
    background: #34495e;
}

/* ===== MENSAGENS ===== */
.error {
    background: #ffeaea;
    color: #c0392b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
    border: 1px solid #ffcdd2;
}

.success {
    background: #e8f5e9;
    color: #27ae60;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
    border: 1px solid #c8e6c9;
}

/* ===== PERFIL ===== */
.profile-section {
    flex: 1;
}

.profile-header {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 3px solid #e1e8ed;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2rem;
}

.profile-header h2 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 500;
}

.profile-header p {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.readonly-field {
    background: #f8f9fa;
    color: #7f8c8d;
    cursor: not-allowed;
}

.file-input {
    padding: 10px !important;
    background: white;
}

.file-help {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 0.85rem;
}

/* ===== BOTÃO DE EMERGÊNCIA ===== */
.emergency-section {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
    border: 2px solid #feb2b2;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(254, 178, 178, 0.3);
}

.emergency-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.emergency-icon {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

.emergency-section h3 {
    color: #c53030;
    font-weight: 700;
    margin: 0;
    font-size: 1.4rem;
}

.emergency-description {
    color: #742a2a;
    margin-bottom: 20px;
    font-weight: 500;
}

.emergency-btn {
    width: 100%;
    padding: 25px 20px;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(229, 62, 62, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: emergencyPulse 2s infinite;
}

.emergency-btn:hover {
    background: linear-gradient(135deg, #c53030, #9b2c2c);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(229, 62, 62, 0.6);
}

.emergency-btn:active {
    transform: translateY(-1px) scale(1.01);
}

.emergency-btn-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.emergency-btn-text {
    flex: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.emergency-info {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.emergency-info p {
    color: #742a2a;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

@keyframes emergencyPulse {
    0% {
        box-shadow: 0 10px 30px rgba(229, 62, 62, 0.4);
    }
    50% {
        box-shadow: 0 10px 40px rgba(229, 62, 62, 0.7);
    }
    100% {
        box-shadow: 0 10px 30px rgba(229, 62, 62, 0.4);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* ===== SUPORTE ===== */
.support-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e1e8ed;
}

.support-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.support-btn {
    width: 100%;
    padding: 16px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.support-btn:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-text {
    flex: 1;
}

.support-info {
    background: #e8f4fd;
    border: 1px solid #b3d9f7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.support-info p {
    color: #2c3e50;
    font-size: 0.9rem;
    margin: 8px 0;
    text-align: center;
}

.contact-info {
    background: #e8f4fd;
    border: 1px solid #b3d9f7;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.contact-info p {
    color: #2c3e50;
    font-size: 0.95rem;
    margin: 10px 0;
    text-align: center;
    font-weight: 500;
}

/* ===== GERENCIAMENTO DE CONTA ===== */
.account-management {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e1e8ed;
}

.account-management h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.danger-actions {
    text-align: center;
}

.danger-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.danger-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.danger-warning {
    background: #ffeaa7;
    border: 1px solid #fdcb6e;
    border-radius: 8px;
    padding: 15px;
    color: #2d3436;
    font-size: 0.9rem;
    line-height: 1.4;
}

.remove-photo-form {
    margin-top: 10px;
}

.remove-photo-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.remove-photo-btn:hover {
    background: #7f8c8d;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    background: #e74c3c;
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 25px;
}

.warning-message {
    background: #ffeaa7;
    border: 1px solid #fdcb6e;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.warning-message p {
    margin: 10px 0;
    color: #2d3436;
}

.warning-message ul {
    margin: 10px 0;
    padding-left: 20px;
}

.warning-message li {
    margin: 5px 0;
    color: #2d3436;
}

.confirmation-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
}

.confirmation-input:focus {
    outline: none;
    border-color: #c0392b;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.cancel-btn {
    flex: 1;
    padding: 12px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cancel-btn:hover {
    background: #7f8c8d;
}

.confirm-delete-btn {
    flex: 1;
    padding: 12px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.confirm-delete-btn:hover {
    background: #c0392b;
}

/* ===== LINKS ===== */
a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.login-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.login-link p {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.login-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.login-links p {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.forgot-password {
    margin-top: 15px;
}

.forgot-password a {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.forgot-password a:hover {
    color: #3498db;
}

.security-note {
    background: #e8f4fd;
    border: 1px solid #b3d9f7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
}

.security-note p {
    color: #2c3e50;
    font-size: 0.85rem;
    margin: 0;
}

/* ===== STATUS ===== */
.status-form {
    margin-bottom: 20px;
}

.status-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.status-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #bdc3c7;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    cursor: pointer;
}

.status-select:focus {
    border-color: #95a5a6;
    outline: none;
}

/* ===== LOGOUT ===== */
.logout-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
    text-align: center;
}

.logout-btn {
    color: #7f8c8d;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid #bdc3c7;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-block;
}

.logout-btn:hover {
    background: #f8f9fa;
    text-decoration: none;
    color: #2c3e50;
}

/* ===== ESTILOS PARA PÁGINAS DE USUÁRIO (NÃO-ADMIN) ===== */
body:not(.admin-page) {
    background: #e29aa7 !important;
}

body:not(.admin-page) .app-container {
    background: #d48e9c;
}

body:not(.admin-page) .form-container {
    background: white;
    border: 1px solid #ffd6e0;
    box-shadow: 0 5px 15px rgba(255, 182, 193, 0.2);
}

body:not(.admin-page) .welcome-card {
    background: white;
    border: 1px solid #ffd6e0;
    box-shadow: 0 5px 15px rgba(255, 182, 193, 0.2);
}

body:not(.admin-page) .feature-item {
    background: white;
    border: 1px solid #ffd6e0;
}

body:not(.admin-page) .simple-feature {
    background: white;
    border: 1px solid #ffd6e0;
}

body:not(.admin-page) .profile-header {
    background: white;
    border: 1px solid #ffd6e0;
    box-shadow: 0 5px 15px rgba(255, 182, 193, 0.2);
}

/* BOTÕES AZUIS PARA USUÁRIOS */
body:not(.admin-page) .app-btn.primary {
    background: #3498db !important;
    color: white;
    border: none;
}

body:not(.admin-page) .app-btn.primary:hover {
    background: #2980b9 !important;
    transform: translateY(-2px);
}

body:not(.admin-page) .app-btn.secondary {
    background: white;
    color: #3498db;
    border: 2px solid #3498db;
}

body:not(.admin-page) .app-btn.secondary:hover {
    background: #3498db;
    color: white;
}

body:not(.admin-page) .form-btn {
    background: #3498db !important;
    color: white;
    border: none;
}

body:not(.admin-page) .form-btn:hover {
    background: #2980b9 !important;
}

body:not(.admin-page) .remove-photo-btn {
    background: #3498db;
    color: white;
}

body:not(.admin-page) .remove-photo-btn:hover {
    background: #2980b9;
}

body:not(.admin-page) .logout-btn {
    border: 1px solid #3498db;
    color: #3498db;
}

body:not(.admin-page) .logout-btn:hover {
    background: #3498db;
    color: white;
}

/* LINKS AZUIS */
body:not(.admin-page) a {
    color: #3498db;
}

body:not(.admin-page) a:hover {
    color: #2980b9;
}

/* FOCUS AZUL */
body:not(.admin-page) .form-group input:focus,
body:not(.admin-page) .form-group select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

body:not(.admin-page) .status-select:focus {
    border-color: #3498db;
}

/* BORDAS ROSA PARA SEÇÕES */
body:not(.admin-page) .support-section {
    border-top: 1px solid #ffd6e0;
}

body:not(.admin-page) .account-management {
    border-top: 1px solid #ffd6e0;
}

body:not(.admin-page) .logout-section {
    border-top: 1px solid #ffd6e0;
}

/* EMERGENCY SECTION COM TONS ROSA */
body:not(.admin-page) .emergency-section {
    background: linear-gradient(135deg, #ffe6ee, #ffd6e0);
    border: 2px solid #ffb6c1;
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.3);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 480px) {
    .app-container {
        padding: 15px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .welcome-card {
        padding: 20px 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .danger-btn {
        padding: 15px;
        font-size: 1.1rem;
    }
    
    .emergency-btn {
        padding: 20px 15px;
        font-size: 1.1rem;
    }
    
    .emergency-btn-icon {
        font-size: 1.5rem;
    }
    
    .emergency-section {
        padding: 20px 15px;
        margin: 20px 0;
    }
}

/* ===== ANIMAÇÕES ===== */
.form-container {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ESTADOS DE FORMULÁRIO ===== */
.form-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

::placeholder {
    color: #a0aec0;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #a0aec0;
}

::-ms-input-placeholder {
    color: #a0aec0;
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: #27ae60;
}

.form-group input:invalid:not(:placeholder-shown):not(:focus) {
    border-color: #e74c3c;
}
.logo-image {
    height: 40px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}