:root {
  --primary-blue: #155a9f;      /* A slightly darker, muted blue */
  --dark-blue: #0d3c70;         /* Deep navy blue */
  --light-blue: #dce6f4;        /* Muted, soft light blue */
  --accent-teal: #259e9e;       /* Less saturated teal */
  --white: #fefefe;             /* Soft white */
  --light-gray: #f0f4fa;        /* Subtle off-white gray for backgrounds */
   --hospital-blue: #1a6fc9;
     --hospital-dark-blue: #0a4b8c;
      --primary-color: #1a6fc9;
            --secondary-color: #2c3e50;
            --accent-color: #e63946;
            --light-bg: #f8fafc;
            --card-bg: #ffffff;
            --dark-text: #2d3748;
            --light-text: #718096;
             --primary-color: #0d6efd;
            --hospital-blue: #1a6fc9;
            --hospital-dark-blue: #0a4b8c;
            --hospital-light: #f8f9fa;
            --lab-green: #28a745;
            --lab-dark-green: #218838;
}
        /* home page css */
        body {
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            background-color: var(--light-gray);
            color: #333;
            padding-top: 70px;
        }

        
        
        /* Navigation */
        .navbar {
            background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue)) !important;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .navbar-brand {
            font-weight: 600;
            letter-spacing: 0.5px;
        }
        
        .nav-link {
            font-weight: 500;
            padding: 0.5rem 1rem;
        }
        
        /* Hero Section */
        .hero-container {
            background: linear-gradient(rgba(26, 111, 201, 0.8), rgba(26, 111, 201, 0.9)), 
                        url('image/young-handsome-physician-medical-robe-with-stethoscope.jpg');
            background-size: cover;
            background-position: center;
            color: white;
            padding: 5rem 0;
            margin-bottom: 3rem;
        }
        
        /* Services Section */
        .service-btn {
            background-color: var(--white);
            color: var(--dark-blue);
            border: 2px solid var(--primary-blue);
            border-radius: 8px;
            padding: 1.2rem 0;
            font-weight: 500;
            transition: all 0.3s ease;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        }
        
        .service-btn:hover {
            background-color: var(--primary-blue);
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.1);
        }
        
        .service-btn i {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
            color: var(--primary-blue);
        }
        
        .service-btn:hover i {
            color: white;
        }
        
        /* News Section */
        .news-card {
            background-color: var(--white);
            border-radius: 10px;
            border-left: 4px solid var(--accent-teal);
            transition: all 0.3s ease;
            height: 100%;
            box-shadow: 0 2px 15px rgba(0,0,0,0.05);
        }
        
        .news-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }
        
        .news-icon {
            color: var(--accent-teal);
            font-size: 1.8rem;
            margin-bottom: 1rem;
        }
        
        /* Footer */
        footer {
            background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
            color: white;
            padding: 3rem 0 1.5rem;
            margin-top: 4rem;
        }
        
        .footer-link {
            color: rgba(255,255,255,0.8);
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .footer-link:hover {
            color: white;
        }
        
        .section-title {
            color: var(--dark-blue);
            position: relative;
            padding-bottom: 0.5rem;
            margin-bottom: 1.5rem;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 50px;
            height: 3px;
            background-color: var(--accent-teal);
        }
        
        @media (max-width: 768px) {
            .hero-container {
                padding: 3rem 0;
            }
            
            .service-btn {
                margin-bottom: 1rem;
            }
        }


     
        
        body.role {
            background-color: #f5f7fa;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        
        /* role selection css */

        .role-selection-container {
            margin: auto;
        }
        
        .role-card {
            transition: all 0.3s;
            border: none;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            margin-bottom: 1.5rem;
        }
        
        .role-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        }
        
        .role-card .card-body {
            padding: 1rem;
            text-align: center;
        }
        .role-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: var(--hospital-blue);
        }
        
        .btn-role {
            background-color: var(--hospital-blue);
            border: none;
            padding: 0.6rem 1.5rem;
            font-weight: 600;
        }
        
        .btn-role:hover {
            background-color: var(--hospital-dark-blue);
        }
        
       



        /* Doctor login  */
            .hospital-header {
            background: linear-gradient(135deg, var(--hospital-dark-blue), var(--hospital-blue));
            color: white;
            padding: 1rem 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .hospital-header h1 {
            font-weight: 700;
            margin: 0;
            font-size: 2rem;
        }
        
        .login-container {
            max-width: 500px;
            margin: 3rem auto;
            animation: fadeIn 0.6s ease-in-out;
        }
        
        .login-card {
            border: none;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }
        
        .card-header {
            background: linear-gradient(135deg, var(--hospital-dark-blue), var(--hospital-blue));
            color: white;
            text-align: center;
            padding: 1.5rem;
            border-bottom: none;
        }
        
        .card-header h2 {
            font-weight: 600;
            margin: 0;
        }
        
        .card-body {
            padding: 2rem;
        }
        
        .form-control {
            padding: 0.75rem 1rem;
            border-radius: 8px;
            border: 1px solid #e0e0e0;
        }
        
        .form-control:focus {
            border-color: var(--hospital-blue);
            box-shadow: 0 0 0 0.25rem rgba(26, 111, 201, 0.25);
        }
        
        .input-group-text {
            background-color: #f8f9fa;
            border-right: none;
        }
        
        .btn-hospital {
            background-color: var(--hospital-blue);
            border: none;
            color:white;
            padding: 0.75rem;
            font-weight: 600;
            transition: all 0.3s;
        }
        
        .btn-hospital:hover {
            background-color: var(--hospital-dark-blue);
            transform: translateY(-2px);
        }
        
        .forgot-link {
            color: var(--hospital-blue);
            text-decoration: none;
        }
    
        
        .forgot-link:hover {
            text-decoration: underline;
        }
        
        .register-link {
            color: var(--hospital-blue);
            font-weight: 600;
            text-decoration: none;
        }
        
        .register-link:hover {
            text-decoration: underline;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .footer {
            background-color: #343a40;
            color: white;
            padding: 1.5rem 0;
            margin-top: 3rem;
            position: absolute;
            bottom: 0;
            width: 100%;
        }

        /* Admin login */
        
        .page-header {
            background-color: var(--primary-color);
            color: white;
            padding: 40px 0;
            margin-bottom: 30px;
        }
        
        .login-container {
            max-width: 500px;
            margin: 0 auto;
            padding: 30px;
        }
        
        .login-A-card {
            background-color: var(--card-bg);
            border-radius: 10px;
            padding: 30px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
            border-left: 4px solid var(--primary-color);
        }
        
        .login-A-card h2 {
            color: var(--primary-color);
            margin-bottom: 30px;
            text-align: center;
        }
        
        .input-group-text {
            background-color: #f8f9fa;
            border-right: none;
        }
        
        .form-control {
            border-left: none;
            padding: 12px 15px;
        }
        
        .form-control:focus {
            box-shadow: none;
            border-color: #ced4da;
        }
        
        .btn-login {
            background-color: var(--primary-color);
            border: none;
            padding: 12px;
            width: 100%;
            font-weight: 600;
            margin-top: 20px;
        }
        
        .btn-login:hover {
            background-color: #0a4b8c;
        }
        
        .login-links {
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
        }
        
        .login-links a {
            color: var(--primary-color);
            text-decoration: none;
        }
        
        .login-links a:hover {
            text-decoration: underline;
        }
        
      
        
        @media (max-width: 768px) {
            .login-container {
                padding: 15px;
            }

            
        }

        /* Lab login  */
          
        .hospital-header {
            background: linear-gradient(135deg, var(--hospital-dark-blue), var(--hospital-blue));
            color: white;
            padding: 1rem 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .hospital-header h1 {
            font-weight: 700;
            margin: 0;
            font-size: 2rem;
        }
        
        .login-container {
            max-width: 500px;
            margin: 3rem auto;
            animation: fadeIn 0.6s ease-in-out;
        }
        
        .login-t-card {
            border: none;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }
        
        .card-t-header {
            background: linear-gradient(135deg, var(--lab-dark-green), var(--lab-green));
            color: white;
            text-align: center;
            padding: 1.5rem;
            border-bottom: none;
        }
        
        .card-t-header h2 {
            font-weight: 600;
            margin: 0;
        }
        
        .card-t-body {
            padding: 2rem;
        }
        
        .form-t-control {
            padding: 0.75rem 1rem;
            border-radius: 8px;
            border: 1px solid #e0e0e0;
        }
        
        .form-t-control:focus {
            border-color: var(--lab-green);
            box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
        }
        
        .input-group-text {
            background-color: #f8f9fa;
            border-right: none;
        }
        
        .btn-lab {
            background-color: var(--lab-green);
            border: none;
            color: white;
            padding: 0.75rem;
            font-weight: 600;
            transition: all 0.3s;
        }
        
        .btn-lab:hover {
            background-color: var(--lab-dark-green);
            transform: translateY(-2px);
        }
        
        .forgot-t-link {
            color: var(--lab-green);
            text-decoration: none;
        }
        
        .forgot-t-link:hover {
            text-decoration: underline;
        }
        
        .register-link {
            color: var(--lab-green);
            font-weight: 600;
            text-decoration: none;
        }
        
        .register-link:hover {
            text-decoration: underline;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .footer {
            background-color: #343a40;
            color: white;
            padding: 1.5rem 0;
            margin-top: 3rem;
        }

        /* password reset style */


        .password-container {
            max-width: 500px;
            margin: auto;
            padding: 2rem;
            flex: 1;
            display: flex;
            align-items: center;
        }
        
        .password-card {
            background-color: var(--card-bg);
            border-radius: 10px;
            padding: 2.5rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            width: 100%;
            border-left: 4px solid var(--primary-color);
        }
        
        .password-card h2 {
            color: var(--primary-color);
            margin-bottom: 1.5rem;
            text-align: center;
        }
        
        .form-label {
            font-weight: 500;
            color: var(--dark-text);
            margin-bottom: 0.5rem;
        }
        
        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.25rem rgba(26, 111, 201, 0.25);
        }
        
        .btn-reset {
            background-color: var(--primary-color);
            border: none;
            padding: 0.75rem;
            font-weight: 600;
            width: 100%;
            color: white;
            transition: all 0.3s;
        }
        
        .btn-reset:hover {
            background-color: #0a4b8c;
            transform: translateY(-2px);
        }
        
        .password-strength {
            height: 4px;
            background: #e0e0e0;
            margin-bottom: 1.5rem;
            border-radius: 2px;
            overflow: hidden;
        }
        
        .strength-bar {
            height: 100%;
            width: 0%;
            background: var(--accent-color);
            transition: width 0.3s;
        }
        
        .password-requirements {
            font-size: 0.85rem;
            color: var(--light-text);
            margin-bottom: 1.5rem;
        }
        
 
        
        @media (max-width: 768px) {
            .password-container {
                padding: 1rem;
            }
            
            .password-card {
                padding: 1.5rem;
            }
        }

        /* lab Paitent List */

         .page-header {
            background-color: rgb(51, 112, 195);
            color: white;
            padding: 40px 0;
            margin-bottom: 30px;
        }
        
        .page-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
        }


         .bg-custom{
            background-color: #1a6fc9;
        }
        
        .patient-card {
            background-color: var(--card-bg);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
            transition: all 0.3s ease;
            border-left: 4px solid var(--primary-color);
        }
        
        .patient-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        
        .patient-card h3 {
            color: var(--primary-color);
            margin-bottom: 15px;
        }
        
        .patient-card p {
            margin-bottom: 8px;
            color: var(--light-text);
        }
        
        .search-container {
            margin-bottom: 30px;
        }
        
        .search-input {
            border-radius: 50px;
            padding: 12px 20px;
            border: 1px solid #e2e8f0;
            box-shadow: none;
        }
        
        .search-input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(26, 111, 201, 0.2);
        }
        
        .no-patients {
            text-align: center;
            padding: 40px;
            color: var(--light-text);
            font-size: 1.1rem;
        }
        
        @media (max-width: 768px) {
            .page-header {
                padding: 30px 0;
            }
            
            .patient-card {
                padding: 15px;
            }
        }

        /* Paitent List  */
          .patient-card {
            background-color: var(--card-bg);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
            transition: all 0.3s ease;
            border-left: 4px solid var(--primary-color);
        }
        
        .patient-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        
        .patient-card h3 {
            color: var(--primary-color);
            margin-bottom: 15px;
        }
        
        .patient-card p {
            margin-bottom: 8px;
            color: var(--light-text);
        }
        
        .search-container {
            margin-bottom: 30px;
        }
        
        .search-input {
            border-radius: 50px;
            padding: 12px 20px;
            border: 1px solid #e2e8f0;
            box-shadow: none;
        }
        
        .search-input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(26, 111, 201, 0.2);
        }
        
        .no-patients {
            text-align: center;
            padding: 40px;
            color: var(--light-text);
            font-size: 1.1rem;
        }
        @media (max-width: 768px) {
            .page-header {
                padding: 30px 0;
            }
            
            .patient-card {
                padding: 15px;
            }
        }

        /* Roation schedule senior */

        
        .note-card {
            background-color: var(--card-bg);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
            transition: all 0.3s ease;
            border-left: 4px solid var(--primary-color);
        }
        
        .note-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        
        .note-card h3 {
            color: var(--primary-color);
            margin-bottom: 15px;
        }
        
        .note-card p {
            margin-bottom: 8px;
            color: var(--light-text);
        }
        
        .note-meta {
            display: flex;
            justify-content: space-between;
            margin-top: 15px;
            font-size: 0.9rem;
        }
        
        .search-container {
            margin-bottom: 30px;
        }
        
        .search-input {
            border-radius: 50px;
            padding: 12px 20px;
            border: 1px solid #e2e8f0;
            box-shadow: none;
        }
        
        .search-input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(26, 111, 201, 0.2);
        }
        
        .no-notes {
            text-align: center;
            padding: 40px;
            color: var(--light-text);
            font-size: 1.1rem;
        }
        
      
        
        @media (max-width: 768px) {
            .page-header {
                padding: 30px 0;
            }
            
            .note-card {
                padding: 15px;
            }
            
            .note-meta {
                flex-direction: column;
                gap: 5px;
            }
        }

          .footor-r{
            position: absolute;
            bottom: 0;
            width: 100%;
        }

        /* paitent ID lookup */
               
        .lookup-container {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px 0;
        }
        
        .lookup-card {
            background-color: var(--card-bg);
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            padding: 40px;
            width: 100%;
            max-width: 500px;
            border-top: 5px solid var(--primary-color);
        }
        
        .lookup-title {
            color: var(--primary-color);
            font-weight: 600;
            margin-bottom: 30px;
            text-align: center;
        }
        
        .input-group {
            margin-bottom: 25px;
            position: relative;
        }
        
        .input-group label {
            position: absolute;
            top: -10px;
            left: 15px;
            background-color: var(--card-bg);
            padding: 0 5px;
            font-size: 0.9rem;
            color: var(--primary-color);
        }
        
        .input-group input {
            width: 100%;
            padding: 15px 20px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-size: 1rem;
            transition: all 0.3s ease;
        }
        
        .input-group input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(26, 111, 201, 0.2);
            outline: none;
        }
        
        .input-icon {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--light-text);
        }
        
        .btn-submit {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 12px 30px;
            font-size: 1rem;
            font-weight: 500;
            border-radius: 8px;
            width: 100%;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .btn-submit:hover {
            background-color: #155a9f;
            transform: translateY(-2px);
        }

        @media (max-width: 768px) {
            .lookup-card {
                padding: 30px 20px;
            }
        }


        /* pahrmacy css */    

        .page-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .pharmacy-card {
            background-color: var(--card-bg);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
            transition: all 0.3s ease;
            border-left: 4px solid var(--primary-color);
        }

        .pharmacy-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }

        .pharmacy-card h3 {
            color: var(--primary-color);
            margin-bottom: 15px;
        }

        .pharmacy-card p {
            margin-bottom: 8px;
            color: var(--light-text);
        }

        .search-container {
            margin-bottom: 30px;
        }

        .search-input {
            border-radius: 50px;
            padding: 12px 20px;
            border: 1px solid #e2e8f0;
            box-shadow: none;
        }

        .search-input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(26, 111, 201, 0.2);
        }

    

        @media (max-width: 768px) {
            .page-header {
                padding: 30px 0;
            }
            
            .pharmacy-card {
                padding: 15px;
            }

        }

        /* Add New Medicine */
           .card {
      max-width: 600px;
      margin: 2rem auto;
      border-left: 4px solid #1a6fc9;
    }
    #successPopup {
      display: none;
      position: fixed; top: 20px; right: 20px;
      background: #d4edda; color: #155724;
      padding: 1rem; border: 1px solid #c3e6cb;
      border-radius: 4px; z-index: 1000;
    }

    /* Image thumbnail styles */
.thumbnail-container {
  position: relative;
  width: 150px;
  height: 150px;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.thumbnail-container:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.thumbnail-container:hover .thumbnail-overlay {
  opacity: 1;
}

.thumbnail-overlay i {
  color: white;
  font-size: 1.5rem;
}

/* Expanded image styles */
.expanded-image-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.expanded-image {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
}

.expanded-image-controls {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 10px;
}

/* Make sure Font Awesome is loaded for the zoom icon */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');


/* Register */
.adminh .hadmin{
    height: 3em;
}
   .hadmin{
        text-align: center;
        color: white;
        background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue)) !important;
        /* margin-top: -70px; */
    }

    h1.hadmin{
        display: flex;
        align-items: center;
        justify-content: center;
        
    }
    main.admin {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 60px 20px;
    }
  
    .admin-title {
      font-size: 2.2rem;
      margin-bottom: 40px;
      color: #003366;
      font-weight: 600;
    }
  
    .button-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 25px;
      width: 100%;
      max-width: 900px;
    }
  
    .admin-button {
      background-color: #0078D7;
      color: white;
      border: none;
      padding: 18px 20px;
      font-size: 1.1rem;
      border-radius: 12px;
      text-align: center;
      text-decoration: none;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      transition: transform 0.2s ease, background-color 0.3s ease;
    }

    .alert-button {
      background-color: #d9534f;
      color: white;
      border: none;
      padding: 18px 20px;
      font-size: 1.1rem;
      border-radius: 12px;
      text-align: center;
      text-decoration: none;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      transition: transform 0.2s ease, background-color 0.3s ease;
    }
  
    .admin-button:hover {
      background-color: #005fa3;
      transform: translateY(-2px);
    }

    .alert-button:hover {
      background-color: #c9302c;
      transform: translateY(-2px);
    }
  
    .adminf {
      text-align: center;
    }

/* you already have this */
body.role {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* make the main content grow to fill the space */
body.role > main {
  flex: 1 0 auto;
}

/* optional: ensure footer never shrinks */
body.role > footer {
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .footer {
    /* cancel the absolute positioning only on small screens */
    position: relative !important;
    bottom: auto !important;
    width: 100% !important;

    /* nudge it down a bit */
    margin-top: 2rem;  /* tweak for just the right spacing */
  }
}


/* admin register & doctor register & lab register */
     .register-container {
            max-width: 550px;
            margin: 0 auto;
            padding: 30px;
        }

        .register-card {
            background-color: var(--card-bg);
            border-radius: 10px;
            padding: 30px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
            border-left: 4px solid var(--primary-color);
        }

        .register-card h2 {
            color: var(--primary-color);
            margin-bottom: 30px;
            text-align: center;
        }

        .input-group-text {
            background-color: #f8f9fa;
            border-right: none;
        }

        .form-control {
            border-left: none;
            padding: 12px 15px;
        }

        .form-control:focus {
            box-shadow: none;
            border-color: #ced4da;
        }

        .btn-register {
            background-color: var(--primary-color);
            border: none;
            padding: 12px;
            width: 100%;
            font-weight: 600;
            margin-top: 20px;
            color: white;
        }

        .btn-register:hover {
            background-color: #0a4b8c;
            color: white;
        }

        .login-link {
            text-align: center;
            margin-top: 20px;
            
        }

        /* Paitent demographics */
         .text-white{
      text-decoration: none;
    }
    
  
    .patient-form-container {
      max-width: 900px;
      margin: 30px auto;
      background-color: var(--card-bg);
      border-radius: 12px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.08);
      padding: 30px;
      border-top: 5px solid var(--primary-color);
    }
    
    .form-title {
      color: var(--primary-color);
      font-weight: 600;
      margin-bottom: 30px;
      text-align: center;
      position: relative;
      padding-bottom: 15px;
    }
    
    .form-title:after {
      content: '';
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      bottom: 0;
      width: 80px;
      height: 3px;
      background: var(--primary-color);
    }
    
    .form-label {
      font-weight: 500;
      color: var(--dark-text);
      margin-bottom: 8px;
    }
    
    .form-control, .form-select {
      padding: 12px 15px;
      border-radius: 8px;
      border: 1px solid #e2e8f0;
      transition: all 0.3s ease;
    }
    
    .form-control:focus, .form-select:focus {
      border-color: var(--primary-color);
      box-shadow: 0 0 0 3px rgba(26, 111, 201, 0.2);
    }
    
    .btn-submit {
      background-color: var(--primary-color);
      color: white;
      border: none;
      padding: 12px 30px;
      font-size: 1rem;
      font-weight: 500;
      border-radius: 8px;
      transition: all 0.3s ease;
      text-transform: uppercase;
      letter-spacing: 1px;
      width: 100%;
      margin-top: 20px;
    }
    
    .btn-submit:hover {
      background-color: #155a9f;
      transform: translateY(-2px);
      color: white;
    }
    
    .file-upload {
      position: relative;
      overflow: hidden;
    }
    
    .file-upload-input {
      position: absolute;
      font-size: 100px;
      opacity: 0;
      right: 0;
      top: 0;
    }
    
    .file-upload-label {
      display: block;
      padding: 12px;
      background-color: #f8f9fa;
      border: 1px dashed #dee2e6;
      border-radius: 8px;
      text-align: center;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    
    .file-upload-label:hover {
      border-color: var(--primary-color);
      background-color: #f0f7ff;
    }
    
    .file-upload-icon {
      font-size: 24px;
      color: var(--primary-color);
      margin-bottom: 10px;
    }
    
    
    /* Success popup styles */
    .popup {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0,0,0,0.5);
      z-index: 9999;
      justify-content: center;
      align-items: center;
    }
    
    .popup-content {
      background-color: white;
      padding: 30px;
      border-radius: 10px;
      text-align: center;
      max-width: 400px;
      width: 90%;
      box-shadow: 0 5px 15px rgba(0,0,0,0.3);
      position: relative;
    }
    
    .popup-close {
      position: absolute;
      top: 10px;
      right: 15px;
      font-size: 24px;
      cursor: pointer;
      color: var(--light-text);
    }
    
    .popup-close:hover {
      color: var(--primary-color);
    }
    
    @media (max-width: 768px) {
      .patient-form-container {
        padding: 20px;
        margin: 20px 15px;
      }
      
      .form-title {
        font-size: 1.5rem;
      }
    }

    /* Paitent history */
     
    .medical-record-container {
      max-width: 1000px;
      margin: 30px auto;
      background-color: var(--card-bg);
      border-radius: 12px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.08);
      padding: 30px;
      border-top: 5px solid var(--primary-color);
    }
    
    .form-title {
      color: var(--primary-color);
      font-weight: 600;
      margin-bottom: 30px;
      text-align: center;
      position: relative;
      padding-bottom: 15px;
    }
    
    .form-title:after {
      content: '';
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      bottom: 0;
      width: 80px;
      height: 3px;
      background: var(--primary-color);
    }
    
    .form-section {
      margin-bottom: 25px;
      padding: 20px;
      background-color: #f8fafc;
      border-radius: 8px;
      border-left: 3px solid var(--primary-color);
    }
    
    .section-title {
      color: var(--primary-color);
      font-weight: 500;
      margin-bottom: 15px;
      display: flex;
      align-items: center;
    }
    
    .section-title i {
      margin-right: 10px;
      font-size: 1rem;
    }
    
    .form-label {
      font-weight: 500;
      color: var(--dark-text);
      margin-bottom: 8px;
    }
    
    .form-control {
      padding: 12px 15px;
      border-radius: 8px;
      border: 1px solid #e2e8f0;
      transition: all 0.3s ease;
    }
    
    .form-control:focus {
      border-color: var(--primary-color);
      box-shadow: 0 0 0 3px rgba(26, 111, 201, 0.2);
    }
    
    textarea.form-control {
      min-height: 100px;
      resize: vertical;
    }
    
    .form-actions {
      display: flex;
      justify-content: space-between;
      margin-top: 30px;
      padding-top: 20px;
      border-top: 1px solid #e2e8f0;
    }
    
    .btn-primary {
      background-color: var(--primary-color);
      color: white;
      border: none;
      padding: 12px 30px;
      font-size: 1rem;
      font-weight: 500;
      border-radius: 8px;
      transition: all 0.3s ease;
    }
    
    .btn-primary:hover {
      background-color: #155a9f;
      transform: translateY(-2px);
    }
    
    .btn-outline-secondary {
      padding: 12px 30px;
      font-size: 1rem;
      font-weight: 500;
      border-radius: 8px;
      transition: all 0.3s ease;
    }
    
    .btn-outline-secondary:hover {
      transform: translateY(-2px);
    }
    
    
    /* Status message styling */
    #statusMessage {
      margin-top: 20px;
      border-radius: 8px;
    }
    
    @media (max-width: 768px) {
      .medical-record-container {
        padding: 20px;
        margin: 20px 15px;
      }
      
      .form-title {
        font-size: 1.5rem;
      }
      
      .form-actions {
        flex-direction: column;
        gap: 10px;
      }
      
      .form-actions .btn {
        width: 100%;
      }
    }

    /* alrets */
      
    .alert-container {
      max-width: 600px;
      margin: 0 auto;
      background: white;
      padding: 30px;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .h1 {
      color: #003366;
      margin-bottom: 30px;
      text-align: center;
    }
    
    .form-group-alret {
      margin-bottom: 20px;
    }
    
    .label {
      display: block;
      margin-bottom: 8px;
      font-weight: 600;
    }
    
    select, textarea {
      width: 100%;
      padding: 12px;
      border: 1px solid #ddd;
      border-radius: 8px;
      font-size: 16px;
    }
    
    textarea {
      min-height: 150px;
      resize: vertical;
    }
    
    .send-btn {
      background-color: #d9534f;
      color: white;
      border: none;
      padding: 12px 24px;
      font-size: 16px;
      border-radius: 8px;
      cursor: pointer;
      display: block;
      width: 100%;
      margin-top: 20px;
      transition: background-color 0.3s;
    }
    
    .send-btn:hover {
      background-color: #c9302c;
    }
    
    #successPopup {
  display: none;
  position: fixed; 
  top: 20px; 
  right: 20px;
  background: #d4edda; 
  color: #155724;
  padding: 1rem; 
  border: 1px solid #c3e6cb;
  border-radius: 4px; 
  z-index: 1000;
}


/* index */

   .hero-container {
            background: linear-gradient(rgba(26, 111, 201, 0.9), rgba(26, 111, 201, 0.8)), 
                        url('https://images.unsplash.com/photo-1579684385127-1ef15d508118?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center;
            background-size: cover;
            color: white;
            padding: 100px 0;
            margin-bottom: 50px;
        }
        
        .service-btn {
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            height: 100%;
            border: 1px solid rgba(0,0,0,0.05);
        }
        
        .service-btn:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.15);
            background-color: var(--primary-color);
            color: white;
        }
        
        .service-btn i {
            font-size: 2.5rem;
            margin-bottom: 15px;
            color: var(--primary-color);
        }
        
        .service-btn:hover i {
            color: white;
        }
        
        .section-title {
            position: relative;
            padding-bottom: 15px;
            margin-bottom: 30px;
            color: var(--primary-color);
        }


     /* role selection */

/* 1) Center and constrain the overall role‐selection container */
.role-selection-container {
  max-width: 1100px;    /* prevent the cards from stretching too wide on large screens */
  margin: 0 auto;       /* center it horizontally */
  padding: 2rem 1rem;
}

/* 2) Make each card look a bit more polished */
.role-card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-color: #ffffff;
}

/* 2a) Hover effect for cards */
.role-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* 3) Ensure each card’s body content is evenly spaced */
.role-card .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
  text-align: center;
}

/* 4) Style the icons inside each card */
.role-icon {
  font-size: 3rem;
  color: #1a6fc9;   /* hospital blue accent */
  margin-bottom: 1rem;
}

/* 5) Card headings and text */
.role-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.role-card p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* 6) Make the “Login” button fill most of the card’s width */
.btn-role {
  width: 100%;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  border-radius: 0.5rem;
}

/* 7) On larger screens, add some extra horizontal spacing between columns */
@media (min-width: 768px) {
  .row > .col-md-3 {
    display: flex;
    justify-content: center;
  }
  .row > .col-md-3 .role-card {
    width: 100%;
    max-width: 260px;   /* caps each card’s width so there’s whitespace on very wide screens */
  }
}

/* 8) Typography tweaks for the header area */
.role-selection-container .text-center h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.role-selection-container .text-center .lead {
  font-size: 1rem;
  color: #555;
}
 
        