/* assets/css/style.css */

/* ========== CSS Variables ========== */
:root {
  --blue: #1f4341;
  --light: #f6f9fb;
  --accent: #194543;
  --muted: #7a8aa3;
}

/* ========== Base Styles ========== */
* {
  box-sizing: border-box;
  font-family: "IBM Plex Sans Arabic", sans-serif;
}

body {
  margin: 0;
  background: var(--light);
  color: #1b2b3a;
  direction: rtl;
  font-weight: "IBM Plex Sans Arabic", sans-serif;
}

/* ========== Layout Components ========== */
.container {
  max-width: 586px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(11, 58, 102, 0.08);
}

.header-hero {
  height: 200px;
  background: linear-gradient(180deg, #d9eef9, #eaf4fb);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../img/profile.jpg');
  background-size: cover;
  background-position: center bottom;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: -48px;
  padding: 0 18px;
  flex-direction: column;
}

.profile-info {
  text-align: center;
}

/* ========== Profile Elements ========== */
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 6px solid #fff;
  background: url('https://via.placeholder.com/96') center/cover no-repeat;
}

.profile-info h1 {
  margin: 0;
  font-size: 22px;
  color: var(--blue);
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  margin-top: 6px;
}

.logo {
  max-width: 120px;
  display: block;
  margin: 16px auto;
}

.fal {
  display: flex;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  margin: 40px;
  gap: 20px;
}

.fal span {
  font-size: 20px;
}

.description {
  color: var(--muted);
  line-height: 1.8;
  text-align: center;
  margin-top: 8px;
  font-weight: bold;
}
.property-description{
  text-align: center;
  font-size: 20px;
}

/* ========== Social Links ========== */
.socials {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 18px 0;
}

.socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

/* ========== Buttons ========== */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  padding: 14px;
  border-radius: 30px;
  text-decoration: none;
  border: 4px solid transparent;
  font-weight: 600;
}

.btn.outline {
  background: transparent;
  color: var(--blue);
  border: 1px solid #e6eef6;
}

/* ========== Cards ========== */
.card {
  background: #fff;
  padding: 18px;
  border-radius: 10px;
  margin-top: 26px;
  box-shadow: 0 6px 24px rgba(11, 58, 102, 0.04);
}

/* ========== Form Elements ========== */
.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.form-row .col {
  flex: 1;
}

.input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e6eef6;
  background: #fafcfe;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;

}

.form-label hr {
  flex: 1 1 0%;
  border: none;
  border-top: 1px solid #ccc;
  height: 0;
  margin: 0;
}

label {
  display: block;
  margin-bottom: 6px;
  --tw-text-opacity1: 1;
  color: rgb(9 50 102 / var(--tw-text-opacity, 1)) !important;
  font-weight: bold !important;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* ========== Footer ========== */
.footer-note {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 18px;
}

/* ========== Responsive Design ========== */
@media (max-width: 700px) {
  .profile-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .form-row {
    flex-direction: column;
  }

  .container {
    margin: 8px;
  }
}

/* ========== Alert Messages ========== */
.alert {
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease-out;
}

.alert-content {
  display: flex;
  align-items: flex-start;
  padding: 16px 20px;
  gap: 12px;
}

.alert-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-message {
  flex: 1;
  line-height: 1.5;
  font-size: 14px;
}

.alert-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border-right: 4px solid #28a745;
}

.alert-success .alert-icon {
  background: #28a745;
  color: white;
}

.alert-success .alert-message {
  color: #155724;
}

.alert-success .alert-close {
  color: #155724;
}

.alert-success .alert-close:hover {
  background: rgba(21, 87, 36, 0.1);
}

.alert-error {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border-right: 4px solid #dc3545;
}

.alert-error .alert-icon {
  background: #dc3545;
  color: white;
}

.alert-error .alert-message {
  color: #721c24;
}

.alert-error .alert-close {
  color: #721c24;
}

.alert-error .alert-close:hover {
  background: rgba(114, 28, 36, 0.1);
}

/* ========== Button Loading State ========== */
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ========== Animations ========== */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== Form Validation Styles ========== */
.input:invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.input:valid {
  border-color: #28a745;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43, 123, 191, 0.1);
}

/* ====
====== Enhanced Form Interactions ========== */
.input.filled,
select:not([value=""]),
textarea.filled {
  background: #f0f8ff;
  border-color: var(--accent);
}

.input:focus,
select:focus,
textarea:focus {
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

/* ========== Enhanced Alert Styles ========== */
.alert-message strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.alert-message ul {
  margin: 8px 0 0 0;
  padding-right: 20px;
}

.alert-message li {
  margin-bottom: 4px;
  font-size: 13px;
}

/* ========== Form Labels Enhancement ========== */
label {
  font-weight: 500;
  transition: color 0.2s ease;
}

.form-row:focus-within label {
  color: var(--accent);
}

/* ========== Button Hover Effects ========== */
.btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 58, 102, 0.2);
  transition: all 0.2s ease;
}

.btn.outline:hover {
  background: var(--blue);
  color: white;
}

/* ========== Success Animation ========== */
@keyframes successPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.alert-success {
  animation: slideIn 0.3s ease-out, successPulse 0.6s ease-in-out 0.3s;
}

/* ========== Mobile Enhancements ========== */
@media (max-width: 700px) {
  .alert-content {
    padding: 14px 16px;
    gap: 10px;
  }

  .alert-message {
    font-size: 13px;
  }

  .btn {
    padding: 12px;
    font-size: 14px;
  }
}

/*
 ========== Date Time Display ========== */
.alert-message small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.8;
  font-weight: normal;
}

.alert-success small {
  color: #0f5132;
}

.alert-error small {
  color: #58151c;
}

/* ========== Arabic Numerals Support ========== */
.arabic-numerals {
  font-family: "Tajawal", "IBM Plex Sans Arabic", Arial, sans-serif;
  direction: rtl;
}

/* ========== Enhanced Success Message ========== */
.alert-success .alert-message strong {
  font-size: 15px;
  color: #0f5132;
}

.alert-success .alert-message {
  line-height: 1.6;
}

/* ========== Select Elements Enhancement ========== */
select:disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

select option {
  padding: 8px;
  background: white;
  color: #333;
}

/* ========== City and District Selection ========== */
#districtSelect:disabled {
  background: #f8f9fa;
  border-color: #e9ecef;
}

#citySelect:focus+#districtSelect {
  border-color: var(--accent);
  transition: border-color 0.3s ease;
}