html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body {
    padding-top: 56px;
    overflow-x: hidden;
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: url("/images//condominium-bg.jpg");
    background-attachment: fixed;
    background-position:bottom;

}

main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    padding-top: 1% !important;
    flex: 1;
    min-height: 93vh;
}

.container {
    margin-bottom: 0 !important;
}

/* Footer */
.footer-modern {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 2rem 0 1rem 0;
    border-top: none;
    margin: 0; 
    margin-top: auto; 
    position: relative;
}

.footer-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-subtitle {
    color: #3498db;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-description {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-info p {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.footer-info i {
    color: #3498db;
    margin-right: 0.75rem;
    width: 16px;
    text-align: center;
}

.footer-divider {
    border-color: #34495e;
    margin: 2rem 0 1.5rem 0;
    opacity: 0.3;
}

.footer-copyright {
    color: #95a5a6;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-link {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Footer Simples para Utilizadores Autenticados */
.footer-simple {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 1rem 0;
    border-top: none;
    margin: 0; 
    margin-top: auto; 
    position: relative;
}

.footer-simple .footer-copyright {
    color: #95a5a6;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-simple .footer-link {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-simple .footer-link:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Responsive adjustments para footer simples */
@media (max-width: 768px) {
    .footer-simple {
        padding: 0.75rem 0;
    }
    
    .footer-simple .col-md-6.text-end {
        text-align: left !important;
        margin-top: 0.5rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-modern {
        padding: 1.5rem 0 0.75rem 0;
    }
    
    .footer-title {
        font-size: 1.3rem;
    }
    
    .footer-subtitle {
        font-size: 1rem;
    }
    
    .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    .col-md-6.text-end {
        text-align: left !important;
        margin-top: 1rem;
    }
}

/* Dashboard tabs */
#dashboardTabs .nav-link {
  color: #495057;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
#dashboardTabs .nav-link:hover {
  color: #1565c0;
  border-bottom-color: #1565c0;
  background-color: transparent;
}
#dashboardTabs .nav-link.active {
  color: #1565c0;
  border-bottom-color: #1565c0;
  background-color: transparent;
  font-weight: 600;
}
#dashboardTabsContent {
  padding: 1.5rem 0;
}
#dashboardTabsContent .tab-pane {
  min-height: 400px;
}

/* Fixed Navbar - Single Definition */
.navbar-modern {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 56px !important;
    z-index: 10 !important;
    background: white !important;
    border-bottom: 1px solid #dee2e6 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.navbar-modern .navbar-brand {
    font-weight: 600;
    color: #2c3e50 !important;
}

.navbar-modern .nav-link {
    color: #2c3e50 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

.navbar-modern .nav-link:hover {
    color: #007bff !important;
}

.navbar-modern .dropdown-menu {
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-modern .dropdown-item {
    color: #2c3e50;
    padding: 0.5rem 1rem;
}

.navbar-modern .dropdown-item:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

/* Override Bootstrap navbar margin */
.navbar {
    margin-bottom: 0 !important;
}

/* Password input with eye icon */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input[type="password"],
.password-input-container input[type="text"] {
    padding-right: 40px; /* Space for the eye icon */
    width: 100%;
}

.password-toggle-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    background: none;
    border: none;
    padding: 5px;
    z-index: 10;
}

.password-toggle-icon:hover {
    color: #495057;
}

.form-control.password-field {
    padding-right: 40px;
}

.password-eye-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    background: none;
    border: none;
    padding: 5px;
    z-index: 10;
}

/* Privacidade e Termos */
.privacy-page, .terms-page {
    background-color: #fff;
    color: #333;
    min-height: 100vh;
    padding: 4rem 0 2rem 0;
    margin-bottom: 2%;
    border-radius:1%;
}

.privacy-container, .terms-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.privacy-header, .terms-header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
}

.privacy-header h1, .terms-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.privacy-header p, .terms-header p {
    color: #666;
    font-size: 0.9rem;
}

.privacy-content section, .terms-content section {
    margin-bottom: 2rem;
}

.privacy-content h2, .terms-content h2 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.privacy-content p, .terms-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.privacy-content ul, .terms-content ul {
    color: #555;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-content li, .terms-content li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.privacy-content .contact-info, .terms-content .contact-info {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

.privacy-content .contact-info p, .terms-content .contact-info p {
    margin-bottom: 0.5rem;
}

/* Contact Page  */
.contact-page {
    background-color: #fff;
    color: #333;
    min-height: 100vh;
    padding: 4rem 3rem 2rem 3rem;
    position: relative;
    border-radius: 1%;
    margin-bottom: 2%;
}

.contact-background {
    
}

.contact-page .container {
    position: relative;
    z-index: 1;
}

.contact-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    margin: 0 auto 2rem auto;
    border-radius: 2px;
}

.contact-intro {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-info {
    padding: 2rem;
    border-radius: 10px;
    height: 100%;
    background: rgba(190,190,190,0.1);
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.2);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1rem;
}

.contact-details h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.contact-details small {
    color: #adb5bd;
    font-size: 0.85rem;
}

.contact-divider {
    margin: 2rem 0;
    border-color: #dee2e6;
}

.contact-form-container {
    background: rgba(190,190,190,0.1);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.2);
    height: 100%;
}

.contact-form .form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form .form-check-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.contact-form .form-check-label a {
    color: #007bff;
    text-decoration: none;
}

.contact-form .form-check-label a:hover {
    text-decoration: underline;
}

.contact-form .btn-primary {
    background: #007bff;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Responsive adjustments Pagina Contacto */
@media (max-width: 768px) {
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-info, .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-item {
        margin-bottom: 1rem;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
    }
    
    .contact-icon i {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .contact-page {
        padding: 2rem 0 1rem 0;
    }
    
    .contact-title {
        font-size: 1.8rem;
    }
    
    .contact-info, .contact-form-container {
        padding: 1rem;
    }
    
    .contact-details h5 {
        font-size: 0.9rem;
    }
    
    .contact-details p {
        font-size: 0.85rem;
    }
}

/* Alerta */
.contact-page .alert {
    border-radius: 8px;
    border: none;
    margin-bottom: 2rem;
}

.contact-page .alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.contact-page .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.contact-page .alert i {
    margin-right: 0.5rem;
}

/* Modal da Política de Privacidade */
#privacyModal .modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 3rem;
}

#privacyModal .modal-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    padding: 1.5rem 2rem;
    position: relative;
}

#privacyModal .modal-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.2;
}

#privacyModal .modal-dialog {
    margin: 4rem auto;
    max-width: 800px;
}

#privacyModal .btn-close {
    filter: invert(1);
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0.5rem;
    background-size: 1.5rem;
}

#privacyModal .modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

#privacyModal .privacy-content section {
    margin-bottom: 1.5rem;
}

#privacyModal .privacy-content h2 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.25rem;
}

#privacyModal .privacy-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

#privacyModal .privacy-content ul {
    color: #555;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

#privacyModal .privacy-content li {
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

#privacyModal .privacy-content .contact-info {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    border-left: 3px solid #007bff;
}

#privacyModal .privacy-content .contact-info p {
    margin-bottom: 0.25rem;
}

#privacyModal .modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 2rem;
}

#privacyModal .btn-secondary {
    background: #6c757d;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

#privacyModal .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Responsive adjustments para a modal */
@media (max-width: 768px) {
    #privacyModal .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    #privacyModal .modal-header {
        padding: 1rem 1.5rem;
    }
    
    #privacyModal .modal-body {
        padding: 1.5rem;
    }
    
    #privacyModal .modal-footer {
        padding: 1rem 1.5rem;
    }
    
    #privacyModal .modal-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    #privacyModal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    #privacyModal .modal-header {
        padding: 0.75rem 1rem;
    }
    
    #privacyModal .modal-body {
        padding: 1rem;
        max-height: 50vh;
    }
    
    #privacyModal .modal-title {
        font-size: 1rem;
    }
}

/* Map Section  */
.map-section {
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.2);
    margin-top: 3rem;
    /* Adicionado para full-width */
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
    background: rgba(190,190,190,0.1);
}

.map-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 0 1rem; 
}

.map-title i {
    color: #e74c3c;
    margin-right: 0.5rem;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    height: 400px; 
    width: 100%; /* Garante que o iframe preencha todo container */
    padding: 0 1rem; 
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px; 
}

.map-info {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 -2px -8px rgba(0, 0, 0, 0.5);
    /* Centralizar as info */
    margin: 0 1rem;
}

.map-address {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.map-address i {
    color: #3498db;
    margin-right: 0.5rem;
}

.map-directions {
    margin-bottom: 0;
}

.map-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.map-link:hover {
    color: #c0392b;
    text-decoration: underline;
}

.map-directions i {
    color: #f39c12;
    margin-right: 0.5rem;
}

/* Responsive adjustments do mapa */
@media (max-width: 768px) {
    .map-section {
        padding: 1rem 0; /* Ajusta  para mobile */
    }
    
    .map-title {
        font-size: 1.3rem;
        padding: 0 0.5rem; 
    }
    
    .map-container {
        height: 300px; 
        padding: 0 0.5rem; 
    }
    
    .map-container iframe {
        border-radius: 5px; 
    }
    
    .map-info {
        margin: 0 0.5rem; 
        padding: 1rem; 
    }
    
    .map-address {
        font-size: 1rem;
    }
}

/* Sobre Nós */
.about-page {
    width: 100%;
    background-color: #fff;
    color: #333;
    max-height: auto;
    padding: 0% 5% 5% 5%;
    margin-bottom: 2%;
    border-radius: 1%;
}

.company-logo {
}

.logo-image {
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 1px;
}

.about-content {
    padding-right: 2rem;
}

.about-title {
    margin-bottom: 2rem;
    line-height: 1.2;
}

.highlight-text {
    color: #3498db;
    font-weight: 400;
    font-size: 1.8rem;
    display: block;
}

.main-text {
    color: #2c3e50;
    font-weight: 700;
    font-size: 2.5rem;
    display: block;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

.about-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: scale(1.02);
}

.about-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.about-image-placeholder:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #adb5bd;
}

.about-image-placeholder i {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.about-image-placeholder p {
    font-size: 1.2rem;
    color: #495057;
    font-weight: 500;
    margin: 0;
    text-align: center;
}

/* Responsive Sobre nós */
@media (max-width: 991px) {
    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .about-title {
        text-align: center;
    }
    
    .highlight-text {
        font-size: 1.5rem;
    }
    
    .main-text {
        font-size: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .logo-symbol {
        font-size: 3rem;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
}

/* Logo na Navbar  */
.navbar-logo {
    height: 70px;
    width: auto;
    max-width: 300px;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

/* Responsive adjustments do logo */
@media (max-width: 576px) {
    .navbar-logo {
        height: 55px;
        max-width: 220px;
    }
}

/* Logo do rodapé */
.footer-logo {
    height: 120px;
    width: auto;
    max-width: 500px;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1); 
    margin: -10px 0; 
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: brightness(1) invert(0); /* Volta ao original no hover */
}

/* Responsive adjustments do logo no rodapé */
@media (max-width: 576px) {
    .footer-logo {
        height: 90px;
        max-width: 350px;
        margin: -5px 0; 
    }
}

/* Dropdown Menu esttilo com fundo branco */
.dropdown-menu-dark {
    background-color: #ffffff !important;
    border-color: #dee2e6 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.dropdown-menu-dark .dropdown-item {
    color: #2c3e50 !important;
}

.dropdown-menu-dark .dropdown-item:hover,
.dropdown-menu-dark .dropdown-item:focus {
    color: #ffffff !important;
    background-color: #3498db !important;
    transition: all 0.3s ease;
}

.dropdown-menu-dark .dropdown-item.active,
.dropdown-menu-dark .dropdown-item:active {
    color: #ffffff !important;
    background-color: #3498db !important;
}

.dropdown-menu-dark .dropdown-divider {
    border-color: #dee2e6 !important;
}


