/* ===== Color Variables ===== */
:root {
    --primary: #EABC34;
    --primary-dark: #d6a52d;
    --secondary: #858796;
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --light: #f8f9fc;
    --dark: #5a5c69;
    --border: #d1d3e2;
    --white: #ffffff;
  }
  
  /* ===== Base Styles ===== */
  body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--dark);
  }

  /* ===== Sand Background for Cooperation Form ===== */
  body.cooperation-form-bg {
    background-image: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)), url('/static/img/image.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
  }
  
  
  .container {
    flex: 1;
  }
  
  /* ===== Typography ===== */
  .text-end {
    text-align: right !important;
  }
  
  /* ===== Form Elements ===== */
  .form-control,
  .form-select {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid var(--border);
    text-align: right;
    direction: rtl;
  }
  
  .form-label {
    color: var(--dark) !important;
    font-weight: 600;
  }
  
  .input-group-text {
    border-radius: 8px !important;
    background-color: var(--light);
    border-color: var(--border);
  }
  
  /* ===== Buttons ===== */
  .btn {
    transition: all 0.3s ease;
    font-weight: 600;
  }
  
  .btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--white) !important;
  }
  
  .btn-primary:hover,
  .btn-primary:focus {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
  }
  
  .btn-store {
    background-color: #56a758;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--white);
  }
  
  .btn-store:hover {
    background-color: #458a47;
  }
  
  /* ===== Card Styles ===== */
  .calculator-card {
    border-radius: 15px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    border: none;
  }

  /* ===== Cooperation Form Card Styling ===== */
  .cooperation-form-bg .form-step {
    background-color: rgba(255,255,255,0.92);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 0.15rem 1.75rem rgba(58,59,69,0.15);
    border-radius: 15px;
  }

  .cooperation-form-bg .bg-white {
    background-color: rgba(255,255,255,0.92) !important;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(0,0,0,0.05);
  }

  /* ===== Header Styling for Cooperation Form ===== */
  .cooperation-form-bg .header-container {
    background: none !important;
    position: relative;
    overflow: visible;
  }

  .cooperation-form-bg .header-bg {
    display: none !important;
  }

  .cooperation-form-bg .header-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)), url('/static/img/image.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
  }

  .cooperation-form-bg .logo-container {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }

  /* ===== Header Text Styling ===== */
  .cooperation-form-bg .header-container h2,
  .cooperation-form-bg .header-container p {
    color: #5a5c69 !important;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
  }

  .cooperation-form-bg .language-switcher .bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
  }

  .cooperation-form-bg .language-switcher a {
    color: #5a5c69 !important;
  }

  .cooperation-form-bg .language-switcher a:hover {
    color: #2c3e50 !important;
  }
  
  .card-header {
    background-color: var(--primary);
    color: var(--white);
    border-radius: 15px 15px 0 0 !important;
  }
  
  .result-card {
    background-color: var(--white);
    border-right: 4px solid var(--primary);
  }
  
  /* ===== Navigation ===== */
  .navbar-brand {
    font-weight: 700;
    color: var(--dark);
  }
  
  /* ===== Tables ===== */
  .table th {
    text-align: right;
  }
  
  /* ===== Footer ===== */
  footer {
    background-color: var(--light);
    padding: 1rem 0;
    box-shadow: 0 -0.15rem 0.5rem 0 rgba(58, 59, 69, 0.1);
    margin-top: auto;
  }
  
  .copyright {
    text-align: center;
    width: 100%;
  }
  
  /* ===== Utility Classes ===== */
  .calc-submit-btn {
    width: 100%;
    padding: 1rem 0;
  }