  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Tajawal", sans-serif;
  }

  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;

  }

  /* ====== Content ====== */
  main {
    flex-grow: 1;
    padding: 20px;
  }


  footer { 
    background: #1F64A5; 
    color: #fff; 
    text-align: center; 
    padding: 10px; 
    margin-top: 30px; 
  }

  h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
  }

  a {
    text-decoration:none ;
  }
      
    .navbar { 
      background: #1F64A5; 
    }
    .navbar .dropdown-menu { 
      text-align: right; 
    }

        /* تنسيق روابط الناف بار */
    .navbar .nav-link {
      color: #fff; /* اللون الأساسي */
      margin: 0 5px;
      transition: all 0.3s ease;
    }

    /* Hover */
    .navbar .nav-link:hover {
      background-color: #1a4f80; /* لون أزرق أغمق */
      border-radius: 5px;
      padding: 5px 10px;
      color: #ffdd57; /* لون النص يتغير */
    }

    /* Current / Active */
    .navbar .nav-link.active {
      background-color: #ffdd57; /* أصفر مثل اللوجو */
      color: #1a4f80; /* نص أزرق */
      border-radius: 5px;
      padding: 5px 10px;
    }

    .card-stat {
      color: #fff;
    }
    .card-stat i {
      font-size: 2rem;
    }
    
    .card-header {
      background: #1F64A5;
      color: #fff;
      font-weight: bold;
    }

    .card-header h5 {
      color: #555;
    }

    .btn-primary {
      background-color: #1F64A5;
      border: none;
    }
    .btn-primary:hover {
      background-color: #1F64A5;
    }

    .btn-outline-secondary{
      margin-bottom: 8px;
    }

    .close-btn {
      position: absolute;
      top: 15px;
      left: 15px;
      font-size: 18px;
      cursor: pointer;
      color: #888;
      transition: color 0.2s;
    }
    .close-btn:hover {
      color: #dc3545;
    }

    
    table thead {
      background-color: #1F64A5;
      color: #fff;
    }

    #calendar { 
      max-width: 90%; 
      margin: 30px auto; 
      background: white; 
      padding: 15px; 
      border-radius: 15px; 
      box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    }

    #calendar a {
      text-decoration: none;
      color: #ff9900;
    }
  
    
    .dataTables_filter { float: left !important; text-align: left !important; }
    .dataTables_paginate { float: right !important; }

    .readonly-field {
      background-color: #f1f1f1;  /* رمادي فاتح */
      color: #555;               /* لون خط غامق شوي */
    }
    
    .details-panel {
      position: fixed; top: 0; right: -400px; width: 350px; height: 100%;
      background: #fff; box-shadow: -3px 0 10px rgba(0,0,0,0.2);
      padding: 20px; transition: right 0.3s ease;
      z-index: 9999; overflow-y: auto;
    }

    .details-panel.active { 
      right: 0; 
    }
   

    .breadcrumb {
      background: transparent; /* بدون خلفية */
      margin-bottom: 1rem;
    }

    .breadcrumb-item a {
      text-decoration: none;
      color: #1a4f80; /* الأزرق */
    }

    .breadcrumb-item a:hover {
      color: #ff9900; /* برتقالي من اللوجو */
    }

    .breadcrumb-item.active {
      color: #555; /* الرمادي الغامق */
      font-weight: bold;
    }


    .login-container {
      display: flex;
      height: 100vh;
    }
    .login-image {
      flex: 1;
      background: url('/imgs/login.jpg') 
                  no-repeat center center;
      background-size: cover;
    }
    .login-form {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 2rem;
    }
    .login-box {
      width: 100%;
      max-width: 400px;
    }



    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 20px;
    }

    .card-box {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 25px;
      border-radius: 15px;
      color: white;
      font-size: 18px;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .card-box i {
      font-size: 35px;
      margin-bottom: 10px;
    }

    .card-box:hover {
      transform: translateY(-5px);
      box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    }

    /* الألوان */
    .patients { background-color: #3498db; }   /* ملفات المرضى */
    .appointments { background-color: #2ecc71; } /* حجز موعد */
    .treatment { background-color: #9b59b6; } /* خطة العلاج */
    .receipts { background-color: #e67e22; }  /* سندات القبض */
    .advance { background-color: #1abc9c; }   /* دفعات مقدمة */
    .refund { background-color: #e74c3c; }    /* مرتجع دفعة مقدمة */

    .page-title {
      text-align: center;
      margin: 20px 0;
      color: #0d6efd;
    }
    
    .services-list {
      max-height: 400px;
      overflow-y: auto;
      padding: 20px;
    }

    .status {
      padding: 5px 10px;
      border-radius: 6px;
      color: #fff;
      font-weight: bold;
    }
    .status-confirmed { background-color: #28a745; }
    .status-pending   { background-color: #ffc107; color: #000; }
    .status-cancelled { background-color: #dc3545; }
    .actions i {
      margin: 0 4px;
      cursor: pointer;
      font-size: 16px;
    }
    .actions i:hover {
      opacity: 0.7;
    }

    .total-box {
      background: #f1f1f1;
      border-radius: 8px;
      padding: 10px;
      margin-top: 10px;
    }
   
    .section-title { background: #0d47a1; color: #fff; padding: 6px; font-weight: bold; }


 
    