:root {
  --primary: #274496;
  --primary-dark: #1d4ed8;
  --primary-light: #93c5fd;
  --secondary: #f59e0b;
  --secondary-dark: #d97706;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --light: #f8f9fa;
  --dark: #231f20;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
#edit
/* Header Styles */
header {
  background-color: white;
  box-shadow: var(--shadow);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  width: 300px;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  transition: var(--transition);
  padding: 8px 12px;
  border-radius: var(--radius);
}

.nav-links a:hover {
  color: var(--primary);
  background-color: var(--gray-100);
}

.nav-links a.active {
  color: var(--primary);
  background-color: #f3f4f6;
  font-weight: 600;
}

.header-btns {
  display: flex;
  gap: 15px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-700);
  cursor: pointer;
}

.btn {
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

/* Main Content */
.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0 30px;
}

.profile-header h1 {
  color: var(--gray-800);
  font-size: 2.2rem;
  font-weight: 700;
}

.profile-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

/* Profile Sidebar */
.profile-sidebar {
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px;
  height: fit-content;
  position: sticky;
  top: 90px;
}

.profile-card {
  text-align: center;
  margin-bottom: 30px;
}

.profile-picture {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.profile-picture:hover img {
  transform: scale(1.05);
}

.btn-change-photo {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.btn-change-photo:hover {
  background-color: var(--primary-dark);
  transform: scale(1.1);
}

.profile-info h2 {
  color: var(--gray-800);
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 600;
}

.profile-info p {
  color: var(--gray-600);
  margin-bottom: 15px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--gray-600);
}

.info-item i {
  color: var(--primary);
  width: 20px;
}

.profile-stats {
  border-top: 1px solid var(--gray-200);
  padding-top: 25px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.stat-info h3 {
  font-size: 1.5rem;
  color: var(--gray-800);
  margin: 0;
  font-weight: 700;
}

.stat-info p {
  color: var(--gray-600);
  margin: 0;
  font-size: 0.9rem;
}

/* Profile Content */
.profile-content {
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px;
  overflow: hidden;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 30px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 15px 25px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--gray-600);
  position: relative;
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  font-weight: 600;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}

.notification-badge {
  background-color: var(--error);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-header {
  margin-bottom: 25px;
}

.tab-header h2 {
  color: var(--gray-800);
  font-size: 1.8rem;
  font-weight: 600;
}

/* Announcements Section */
.announcements-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.announcements-header h2 {
  color: var(--gray-800);
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.announcements-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  font-size: 0.9rem;
  color: var(--gray-600);
  font-weight: 500;
}

.filter-group select {
  padding: 10px 15px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.9rem;
  background-color: white;
  transition: var(--transition);
}

.filter-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box i {
  position: absolute;
  left: 12px;
  color: var(--gray-400);
}

.search-box input {
  padding: 10px 15px 10px 40px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.9rem;
  width: 250px;
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.announcements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.announcement-card {
  background-color: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.announcement-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.announcement-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.announcement-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.announcement-card:hover .announcement-image img {
  transform: scale(1.05);
}

.announcement-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  z-index: 2;
}

.announcement-tag.venda {
  background-color: var(--success);
}

.announcement-tag.locacao {
  background-color: var(--primary);
}



.announcement-status {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 5px 10px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  z-index: 2;
}

.status-active {
  background-color: var(--success);
}

.status-pending {
  background-color: var(--warning);
}

.status-inactive {
  background-color: var(--gray-500);
}

.badge-unpaid {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--error);
  color: white;
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  z-index: 2;
}

.announcement-info {
  padding: 20px;
}

.announcement-info h3 {
  color: var(--gray-800);
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

.announcement-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.meta-item i {
  color: var(--primary);
  width: 16px;
}

.announcement-actions {
  display: flex;
  gap: 10px;
  padding: 0 20px 20px;
  flex-wrap: wrap;
}

.btn-pay {
  background: var(--success);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-pay:hover {
  background: #0da271;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-status {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-status:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-delete {
  background: var(--error);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-delete:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 20px;
  color: var(--gray-300);
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--gray-600);
}

.empty-state p {
  margin-bottom: 25px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Loading States */
.loading-announcements {
  text-align: center;
  padding: 50px;
  grid-column: 1 / -1;
  color: var(--gray-500);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-200);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-announcements p {
  font-size: 1rem;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.file-upload-container {
  margin-top: 8px;
}

.file-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background-color: var(--gray-100);
  border: 1px dashed var(--gray-400);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.file-upload-label:hover {
  background-color: var(--gray-200);
}

.file-name {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-300);
  transition: var(--transition);
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: var(--transition);
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 30px;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  height: 90vh;
  max-width: 800px;
  max-height: 100vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(-20px);
  transition: var(--transition);
}
.modal-content #edit-profile-form{
    width: 90%;
    margin: auto;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid var(--gray-200);
}

.modal-header h2 {
  margin: 0;
  color: var(--gray-800);
  font-size: 1.5rem;
}

.close-btn {
  font-size: 1.5rem;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.close-btn:hover {
  color: var(--error);
}

.modal-body {
  padding: 25px;
}

/* Footer */
footer {
  background-color: var(--gray-800);
  color: white;
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-column h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: var(--gray-300);
  text-decoration: none;
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: white;
}

.footer-column ul li i {
  margin-right: 10px;
  color: var(--primary);
  width: 16px;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--gray-700);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 20px;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .profile-container {
    grid-template-columns: 1fr;
  }
  
  .profile-sidebar {
    position: static;
  }
  
  .announcements-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-links, .header-btns {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .profile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .announcements-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .announcements-filters {
    flex-direction: column;
    width: 100%;
  }
  
  .search-box input {
    width: 100%;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .container {
    width: 100%;
    padding: 0 20px;
  }
  
  .profile-sidebar, .profile-content {
    padding: 20px;
  }
  
  .tabs {
    flex-direction: column;
    border-bottom: none;
  }
  
  .tab-btn {
    border-bottom: 1px solid var(--gray-200);
    justify-content: space-between;
  }
  
  .tab-btn.active::after {
    display: none;
  }
  
  .announcements-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    margin: 20px;
    width: calc(100% - 40px);
  }
} 
/* Additional animations for enhanced UX */
.animate-stats {
  animation: countUp 1s ease-out;
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hover effects for cards */
.announcement-card {
  transition: all 0.3s ease;
}

.announcement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 5px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button hover effects */
.btn {
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn:hover::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Loading skeleton for announcements */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-image {
  height: 180px;
  width: 100%;
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-text.medium {
  width: 80%;
}

/* Focus states for accessibility */
.btn:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  :root {
    --light: #1a1a1a;
    --gray-50: #2d2d2d;
    --gray-100: #3d3d3d;
    --gray-200: #4d4d4d;
    --gray-300: #5d5d5d;
    --gray-400: #6d6d6d;
    --gray-500: #7d7d7d;
    --gray-600: #8d8d8d;
    --gray-700: #9d9d9d;
    --gray-800: #adadad;
    --gray-900: #cdcdcd;
    --dark: #f8f9fa;
  }
  
  body {
    background-color: #121212;
    color: var(--gray-200);
  }
  
  .profile-sidebar,
  .profile-content,
  .announcement-card,
  .modal-content {
    background-color: #2d2d2d;
    color: var(--gray-200);
  }
  
  .announcement-info h3 {
    color: var(--gray-200);
  }
}