﻿/* 1) Box-sizing */
html {
    box-sizing: border-box;
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* 2) Base font sizing */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* 3) Focus outlines */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
  margin: 0;
  margin-bottom: 60px;
  margin-top: 50px;
  background: linear-gradient(135deg, #1439ba61 0%, #48c6ef38 100%);   /* or whatever your app bg is */
  /* no display:flex here any more */
}

/* 4) .auth-page background & flex centering */
.auth-page {
    margin: 0;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #1439ba61 0%, #48c6ef38 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 5) Two-pane login layout */
.login-container {
    max-width: 900px;
    width: 100%;
    height: 600px;
    margin: 2rem auto;
    display: flex;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.1);
}

.login-image {
    flex: 1;
    background: url('/images/medical-banner-with-doctor-wearing-coat.jpg') center/cover no-repeat;
}

.login-form {
    flex: 1;
    background: #fff;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    /* 6) Brand & floating labels */
    .login-form .brand {
        text-align: center;
        margin-bottom: 0.5rem;
        font-size: 1.75rem;
        font-weight: 700;
        color: #333;
    }

    .login-form .form-floating > .form-control:focus ~ label,
    .login-form .form-floating > .form-control:not(:placeholder-shown) ~ label {
        opacity: 1;
        transform: scale(.85) translateY(-0.5rem);
    }

    /* 7) Button & link tweaks */
    .login-form .btn-primary {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
        border-radius: 0.5rem;
    }

    .login-form .text-muted a {
        color: #48c6ef;
        text-decoration: none;
    }

        .login-form .text-muted a:hover {
            text-decoration: underline;
        }

/* 8) Mobile: stack panels & hide image */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column-reverse;
        height: 800px;
        margin: 1rem auto;
    }

    .login-form {
        padding: 1rem;
    }
}
:root {
  --navbar-height: 70px;
  --logo-height: 50px;
}

/* Navbar container */
.navbar {
  height: var(--navbar-height);
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Brand link spacing */
.navbar .navbar-brand {
  padding: 0;
  display: flex;
  align-items: center;
  margin-right: 60px;
}

/* Logo sizing and alignment */
.brand-logo {
  height: var(--logo-height);
  width: auto;
  margin: 0;
}

/* Ensure mobile hamburger icon uses accent */
.navbar-light .navbar-toggler {
  border-color: var(--accent);
}
.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%236fa22e' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .navbar {
    height: auto;
    padding: 0.5rem 1rem;
  }
  .brand-logo {
    height: 40px;
  }
}

/* Utility tweaks */
.text-accent {
  color: var(--accent) !important;
}
.bg-accent {
  background-color: var(--accent) !important;
  color: var(--text-light) !important;
}




  :root {
    --accent: #6fa22e;
    --text-dark: #333;
    --bg-light: #dcedc8a8;
  }

  body {
    background: var(--bg-light);
    font-family: 'Segoe UI', sans-serif;
    color: var(--text-dark);
  }

  .action-card {
    background: var(--accent);
    color: #fff;
    border-radius: .5rem;
    padding: .75rem 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background .2s ease;
  }
  .action-card i {
    margin-right: .5rem;
  }
  .action-card:hover {
    background: darken(var(--accent), 10%);
  }

  /* Table styling for md+ screens */
  
  .table-card .table th {
    background: var(--accent);
    color: #fff;
    border: none;
  }
  .table-card .table td,
  .table-card .table th {
    vertical-align: middle;
    border-top: none;
  }

  /* Mobile card layout */
/*  @media (max-width: 767.98px) {
    .table-card { display: none; }
    .table-card-phone {
  display: block;
  width: 100%; 
}

.table-card-phone .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; 
}

.table-card-phone .table-responsive > .table {
  min-width: 200px;
}
    .patient-card {
      background: #fff;
      border-radius: .5rem;
      margin-bottom: 1rem;
      box-shadow: 0 2px 6px rgba(0,0,0,.1);
      cursor: pointer;
      transition: transform .1s ease;
      border: 4px solid #00000000;
    }
    
    .patient-card .card-body {
      padding: 1rem;
    }
    .patient-card .card-title {
      font-size: 16px;
      margin-bottom: .5rem;
      color: var(--accent);
      text-align: center;
    }
    .patient-card .card-text {
      font-size: 12px;
      margin-bottom: .5rem;
      font-weight: 700;
    }
    .patient-card .card-text small {
      color: #777;
    }
  }*/

  /* Hide mobile cards on md+ */
  @media (min-width: 768px) {
    .mobile-only { display: none; }
  }
  .navbar {
  height: auto;
  padding: 0.5rem 1rem;
}

/* scale your logo to fit */
.brand-logo {
  height: 80px;
    position: absolute;
    margin-top: 40px;
  width: auto;
}

/* Hero title & subtitle */
.dashboard-hero {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.dashboard-hero h1 {
  font-size: 2.25rem;
  color: #F5F5F5;
  margin-bottom: 0.5rem;
  background-color: #9CCC65;
  padding: 20px;
  border-radius: 20px;
  margin-top: -10px;
}
.dashboard-hero p {
  color: #ffffff;
  font-size: 1.1rem;
  margin: 4px;
}

/* The white “card” around the form */
.form-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  box-shadow: 0 0.5rem 1rem var(--shadow-color);
}

/* Floating-label focus */
.form-floating .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(111, 162, 46, 0.25);
}

/* Checkboxes use accent */
.form-check-input {
  accent-color: var(--accent);
  width: 1.25rem;
  height: 1.25rem;
}
.form-check-label {
  margin-left: 0.5rem;
  font-weight: 500;
}

/* Button sizing */
.btn {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
}

.info-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.info-card h5 {
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.info-card dt {
  font-weight: 500;
  color: #555;
}

.info-card dd {
  margin: 0;
  color: #333;
}

/* Prescription count highlight */
.info-card .prescription-count {
  color: #d32f2f;     /* a strong red */
  font-weight: bold;
  font-size: 1.1rem;
}

/* Responsive button group */
@media (max-width: 575.98px) {
  .info-card + .d-flex {
    flex-direction: column;
  }
}

.info-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}
.info-card h5 {
  color: var(--accent);
  font-weight: 600;
}

/* Table-card for medical records */
.table-card {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}
.table-card .table th {
  background: var(--accent);
  color: #fff;
  border: none;
}
.table-card .table td,
.table-card .table th {
  border-top: none;
}

/* Accent for section headers */
.text-accent {
  color: var(--accent) !important;
}

/* Card wrapper */
.info-table-card {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

/* Base table reset */
.info-table {
  border-collapse: separate;
  width: 100%;
}

/* Value cell style */
.info-table td {
  padding: 0.75rem 1rem;
  vertical-align: top;
}

/* Zebra striping */
.info-table tr:nth-child(even) td {
  background: #f9f9f9;
}

/* Responsive tweak (if it ever overflows) */
.info-table-card .table {
  display: block;
  width: 100%;
}


.Linkbutton{
  background-color: #6fa22e;
    color: white;
    border: 0;
}
.fa-link{
  font-size: 1.5rem;
  margin-right: 0.5rem;

}

.quick-actions .card {
  padding: 0.5rem 0.3rem;
  border-radius: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: none !important;
}

.quick-actions .card .icon-circle {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto;
}

.quick-actions .card.hover-shadow:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15);
}
.row-cols-1>* {
    width: 23%;
    border: solid 1px #9CCC65;
    border-radius: 20px;
    margin: 2px;
    height: fit-content;
}
.action-card1{
  color: #6fa22e;
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: transparent;
}



.stylish-header {
  display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.5rem;
    width: 100%;
    justify-content: center;
    color: #F5F5F5;
    background-color: #9CCC65;
}

.stylish-header i {
  margin-right: 10px;
  font-size: 25px;
  color: #142c47; /* Accent color for the icon */
}



/* -----------------------------------------------
   1. Card container (doctor-card) styling
   ----------------------------------------------- */
.doctor-card {
  border: none;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Lift & deepen shadow on hover */
.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* -----------------------------------------------
   2. Header styling
   ----------------------------------------------- */
.doctor-card .card-header {
  background: linear-gradient(120deg, #95cd4e, #bae38f);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
}

/* Style the badge inside header */
.doctor-card .badge {
  background-color: #ffffff;
  border-radius: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  text-align: center;
}

/* -----------------------------------------------
   3. Patient list items
   ----------------------------------------------- */
.patient-list {
  flex: 1; /* ensures list takes remaining vertical space */
}

.patient-list .list-group-item {
  border-color: #e9ecef;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: #333;
  transition: background 0.2s ease;
}

/* No top border on the first item */
.patient-list .list-group-item:first-child {
  border-top: none;
}

/* Slight hover effect on each list item */
.patient-list .list-group-item:hover {
  background-color: #f8f9fa;
}

/* Icon in front of patient name */
.patient-list .fa-user {
  margin-right: 0.6rem;
  color: #6fa22e;
}

/* “No patients” text styling */
.patient-list .text-muted {
  font-style: italic;
  color: #888 !important;
}

/* -----------------------------------------------
   4. Link reset and hover shadow wrapper
   ----------------------------------------------- */
.hover-shadow {
  transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* Remove default link underline/color in cards */
.text-decoration-none {
  text-decoration: none !important;
}

.text-reset {
  color: inherit !important;
}


.patient-card.attended.rotating-border {
  border: 4px solid transparent;
  border-radius: 8px;

  border-image: conic-gradient(
    #f00,
    #ff0,
    #0f0,
    #0ff,
    #00f,
    #f0f,
    #f00
  );
  border-image-slice: 1; 

}

.rotating-border > .card-body {
  position: relative;
  z-index: 1;
}


 .line{
  padding: .8rem !important;
 }

 .create-department-btn{
  background-color: #6fa22e00;
  color: white;
  border: none;
  padding: 0rem 1rem;
  border-radius: .5rem;
  font-size: 1rem;
 }
 .create-department-btn:hover {
    color: #fff;
    background-color: #9bc798;
    border-color: #9bc798;
 }

 .btn-success {
    color: #fff;
    background-color: #9CCC65;
    border-color: #9CCC65;
}
.btn-success:hover {
    color: #fff;
    background-color: #88c146;
    border-color: #88c146;
}

 @media (max-width: 768px) {
    .navbar-collapse
  { margin-top: 40px; }
  }



/* Mobile sticky actions */
.sticky-actions{
  position: fixed;
  left: 0; right: 0; bottom: 60px;
  z-index: 1030;
  background: #fff;
  border-top: 1px solid #edf2e0;
  box-shadow: 0 -6px 16px rgba(0,0,0,.08);
  padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
  display: flex; gap: .6rem;
}
.sticky-actions .btn{ flex: 1 1 0; }

/* مساحة تحت للفورم على الموبايل عشان ما يتغطّى بالشريط */
@media (max-width: 767.98px){
  .form-card{ margin-bottom: 90px; }
}








  #mcNav > div.offcanvas-body.d-flex.flex-column > div{
    margin-bottom: 100px;
  }