/* Alfonso Tax System - Global Styles */
/* Matches the original TailwindCSS design system */

:root {
  /* Color Variables matching the original theme */
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(222.2, 84%, 4.9%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(222.2, 84%, 4.9%);
  --primary: hsl(146, 100%, 15%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(210, 40%, 96.1%);
  --secondary-foreground: hsl(222.2, 47.4%, 11.2%);
  --muted: hsl(210, 40%, 96.1%);
  --muted-foreground: hsl(215.4, 16.3%, 46.9%);
  --border: hsl(214.3, 31.8%, 91.4%);
  --input: hsl(214.3, 31.8%, 91.4%);
  --ring: hsl(222.2, 84%, 4.9%);
  --alfonso-primary: hsl(146, 100%, 15%);
  --alfonso-secondary: hsl(120, 100%, 25%);
  --alfonso-accent: hsl(0, 72%, 51%);
  --radius: 0.5rem;
}

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

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}

.min-h-screen {
  min-height: 100vh;
}

.flex {
  display: flex;
}

.flex-1 {
  flex: 1;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.bg-cover {
  background-size: cover;
}

.bg-center {
  background-position: center;
}

.w-full {
  width: 100%;
}

.h-12 {
  height: 3rem;
}

.max-w-md {
  max-width: 28rem;
}

.p-8 {
  padding: 2rem;
}

.p-4 {
  padding: 1rem;
}

.pt-8 {
  padding-top: 2rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mt-16 {
  margin-top: 4rem;
}

.mt-20 {
  margin-top: 5rem;
}

.mt-24 {
  margin-top: 6rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-1 > * + * {
  margin-top: 0.25rem;
}

.bg-white {
  background-color: white;
}

.bg-opacity-90 {
  background-color: rgba(255, 255, 255, 0.9);
}

.rounded-lg {
  border-radius: var(--radius);
}

.rounded-full {
  border-radius: 9999px;
}

.shadow-xl {
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-lg {
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.text-center {
  text-align: center;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.font-medium {
  font-weight: 500;
}

.font-bold {
  font-weight: 700;
}

.leading-relaxed {
  line-height: 1.625;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-800 {
  color: #1f2937;
}

.text-red-600 {
  color: #dc2626;
}

.text-white {
  color: white;
}

.transform {
  transform: var(--tw-transform);
}

.-translate-x-1\/2 {
  --tw-translate-x: -50%;
  transform: translateX(var(--tw-translate-x));
}

.left-1\/2 {
  left: 50%;
}

.-top-16 {
  top: -4rem;
}

.w-24 {
  width: 6rem;
}

.h-24 {
  height: 6rem;
}

.w-32 {
  width: 8rem;
}

.h-32 {
  height: 8rem;
}

/* Form Elements */
.form-label {
  display: block;
  font-size: 1.125rem;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  height: 3rem;
  padding: 0.75rem;
  font-size: 1.125rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background-color: white;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--alfonso-primary);
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-input[readonly] {
  background-color: #cccdc6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3rem;
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--alfonso-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--alfonso-secondary);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-link {
  background: none;
  border: none;
  color: var(--alfonso-secondary);
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  height: auto;
  width: auto;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Alfonso Colors */
.text-alfonso-primary {
  color: var(--alfonso-primary);
}

.text-alfonso-secondary {
  color: var(--alfonso-secondary);
}

.bg-alfonso-primary {
  background-color: var(--alfonso-primary);
}

.bg-alfonso-secondary {
  background-color: var(--alfonso-secondary);
}

/* Gradient Background */
.gradient-bg {
  background: linear-gradient(
    135deg,
    rgba(147, 197, 253, 0.8) 0%,
    rgba(16, 185, 129, 0.8) 100%
  );
}

/* Utility Classes */
.hidden {
  display: none;
}

.block {
  display: block;
}

.opacity-70 {
  opacity: 0.7;
}

.opacity-90 {
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .flex {
    flex-direction: column;
  }

  .p-8 {
    padding: 1rem;
  }

  .max-w-md {
    max-width: 100%;
  }
}

/* Alert/Toast Messages */
.alert {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.alert-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-warning {
  background-color: #fffbeb;
  color: #92400e;
  border: 1px solid #fed7aa;
}

.alert-info {
  background-color: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Dashboard Styles */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--alfonso-primary);
}

/* Table Styles */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.table th,
.table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table th {
  background-color: var(--secondary);
  font-weight: 600;
  color: var(--alfonso-primary);
}

.table tr:hover {
  background-color: var(--muted);
}

/* Navigation */
.nav {
  background-color: var(--alfonso-primary);
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-brand {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: background-color 0.2s;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  background-color: var(--alfonso-secondary);
}
/* Header fixes */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  flex-shrink: 0;
}

.user-info {
  text-align: right;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .user-info {
    margin-top: 1rem;
  }
}
@media (max-width: 768px) {
  .absolute.top-4.right-4 {
    top: 1rem;
    right: 1rem;
  }

  .absolute.top-4.right-4 button {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Login Component Styles */
.login-container {
  min-height: 100vh;
  display: flex;
}

.login-image-section {
  flex: 1;
  background-image: url("https://cdn.builder.io/api/v1/image/assets/TEMP/435e3d351ec148285974cf97bd09f84196b9cc3f?width=1920");
  background-size: cover;
  background-position: center;
}

.login-form-section {
  flex: 1;
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(147, 197, 253, 0.8) 0%,
    rgba(16, 185, 129, 0.8) 100%
  );
}

.login-bg-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url("https://cdn.builder.io/api/v1/image/assets/TEMP/7bb30b5359442b86d199ef6d4dd5045268864b90?width=1920");
  background-size: cover;
  background-position: center;
}

.login-content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.login-form-wrapper {
  width: 100%;
  max-width: 28rem;
  position: relative;
}

.login-form-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
}

.login-logo {
  position: absolute;
  top: -4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.login-logo-circle {
  width: 8rem;
  height: 8rem;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.login-logo-img {
  width: 6rem;
  height: 6rem;
}

.login-form {
  padding-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.login-links {
  margin-top: 1.5rem;
  text-align: center;
}

.login-signup {
  margin-top: 1rem;
  text-align: center;
  color: #374151;
}

.sample-accounts {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.875rem;
}

.sample-accounts-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.sample-accounts-list {
  font-size: 0.75rem;
}

.sample-accounts-list > div {
  margin-top: 0.25rem;
}

/* Responsive adjustments for login */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
  }

  .login-image-section {
    min-height: 200px;
  }

  .login-content {
    padding: 1rem;
  }

  .login-form-wrapper {
    max-width: 100%;
  }
}
.hover-card:hover {
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
  transition: all 0.2s;
}

.hover-card:hover img {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .user-info {
    margin-top: 1rem;
  }
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 400px;
  width: 90%;
  position: relative;
  z-index: 10000;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--alfonso-primary);
}

.modal-content p {
  margin-bottom: 1.5rem;
  color: #4b5563;
}

.modal-content .btn {
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

/* Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup-container {
  position: relative;
  width: 100%;
  max-width: 64rem;
  height: 24rem;
  background: white;
  border: 4px solid var(--alfonso-primary);
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.popup-header {
  width: 100%;
  height: 4rem;
  background: var(--alfonso-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.popup-close-btn {
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.popup-close-btn:hover {
  color: #e5e7eb;
}

.popup-title {
  font-size: 2.25rem;
  font-weight: bold;
  color: var(--alfonso-primary);
  text-align: center;
  padding: 2rem 0;
}

.popup-options {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0 2rem;
}

.popup-option-btn {
  flex: 1;
  max-width: 24rem;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 2rem;
  background: white;
  cursor: pointer;
  transition: box-shadow 0.2s;
  text-align: center;
}

.popup-option-btn:hover {
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.popup-icon-container {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-file-icon {
  width: 5rem;
  height: 6rem;
  background: var(--alfonso-primary);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.popup-icon-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  width: 1.5rem;
  height: 1.5rem;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-option-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--alfonso-primary);
}

/* Land Type Icons */
.land-type-icon {
  position: relative;
}

.land-agricultural-ground {
  position: absolute;
  bottom: -0.5rem;
  right: -0.5rem;
  width: 2rem;
  height: 0.5rem;
  background: var(--alfonso-primary);
  border-radius: 9999px;
}

.land-agricultural-detail1 {
  position: absolute;
  bottom: -0.25rem;
  right: -1rem;
  width: 1rem;
  height: 0.25rem;
  background: var(--alfonso-primary);
  border-radius: 9999px;
}

.land-agricultural-detail2 {
  position: absolute;
  bottom: -0.25rem;
  right: 0;
  width: 1rem;
  height: 0.25rem;
  background: var(--alfonso-primary);
  border-radius: 9999px;
}

.land-residential-dot1 {
  position: absolute;
  bottom: -0.5rem;
  left: -0.5rem;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--alfonso-primary);
  border-radius: 50%;
}

.land-residential-dot2 {
  position: absolute;
  bottom: -0.5rem;
  right: -0.5rem;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--alfonso-primary);
  border-radius: 50%;
}

/* Header fixes */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  flex-shrink: 0;
}

.user-info {
  text-align: right;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .user-info {
    margin-top: 1rem;
  }

  .popup-options {
    flex-direction: column;
    align-items: center;
  }

  .popup-option-btn {
    max-width: 20rem;
  }
}
