:root {
  --primary-color: #6d45a1;
  --primary-dark: #4c2f7a;
  --primary-light: #8a65c2;
  --accent-color: #ff6f61;
  --text-light: #ffffff;
  --text-dark: #2d1b4e;
  --background-light: #f8f6fc;
  --card-shadow: 0 8px 24px rgba(109, 69, 161, 0.15);
}

body {
  font-family: "Roboto", sans-serif;
}


.navbar-brand {
  font-size: 1.2rem !important;
}
/* =============================
            Home Page
   ============================= */
/* Login Page Styles */

        body {
            background: var(--background-light);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        .login-container {
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .login-card {
            max-width: 400px;
            width: 100%;
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
            padding: 2rem;
            margin-top: 5%;
        }

        .login-card h4 {
            color: var(--primary-color);
            font-weight: bold;
            margin-bottom: 1.5rem;
        }

        .btn-primary-custom {
            background: var(--primary-color);
            border: none;
            color: var(--text-light);
            padding: 0.6rem 1rem;
            border-radius: 8px;
            font-weight: 500;
            transition: 0.3s;
        }

        .btn-primary-custom:hover {
            background: var(--primary-dark);
            color: #fff;
        }

        .form-control {
            height: 3rem;
            border-top-right-radius: 8px !important;
            border-bottom-right-radius: 8px !important;
        }

        .form-control:focus {
            border-color: var(--primary-light);
            box-shadow: none;
        }
/* Login Page Styles */

/* Home Page Styles */

        .doctor-card {
            background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
            color: var(--text-light);
            border: none;
            border-radius: 12px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .doctor-card:hover {
            box-shadow: 0 8px 24px rgba(109, 69, 161, 0.15);
        }

        .doctor-card:hover::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
            opacity: 1;
            transition: opacity 0.3s ease;
            /* Allow pointer events to pass through the overlay so buttons/links remain clickable */
            pointer-events: none;
        }

        .doctor-card .badge {
            background-color: #dcf8e0 !important;
            color: #0d9120;
            font-weight: 600;
            border-radius: 20px;
        }

        .btn-primary {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
            border-radius: 8px;
            font-weight: 600;
        }

        .btn-primary:hover {
            background-color: var(--primary-dark);
            border-color: var(--primary-dark);
            transform: translateY(-2px);
        }

        .btn-download {
            background-color: rgba(255, 255, 255, 0.95);
            border: none;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            /* Ensure the button sits above any decorative overlays */
            position: relative;
            z-index: 20;
            pointer-events: auto;
            transition: background-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
            color: var(--text-dark);
        }

        /* Visible hover/focus state for download button */
        .btn-download:hover,
        .btn-download:focus {
            /* Keep same appearance as the non-hover state */
            background-color: rgba(255, 255, 255, 0.95);
            color: var(--text-dark);
            transform: none;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            outline: none;
        }

        .form-control:focus {
            border-color: var(--primary-color) !important;
            box-shadow: none !important;
        }

/* Home Page Styles */


/* Add Doctor Styles */

        .form-label {
            font-weight: 600;
            color: var(--text-dark);
        }

        .form-control,
        .form-select {
            border-radius: 8px;
            height: 3rem;
            box-shadow: none;
            transition: all 0.3s ease;
        }

        .form-control:focus,
        .form-select:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.2rem rgba(109, 69, 161, 0.25);
        }

        .btn-primary-custom {
            background-color: var(--primary-color);
            border: none;
            border-radius: 8px;
            font-weight: 600;
            padding: 0.5rem 1rem;
            color: #fff;
            transition: all 0.3s ease;
        }

        .btn-primary-custom:hover {
            background-color: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: var(--card-shadow);
            color: #fff;
        }

        .progress {
            height: 1rem;
            border-radius: 8px;
            background-color: #e9ecef;
        }

        .progress-bar {
            background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
        }

        .custom-card {
            border: none;
            border-radius: 15px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .card-header {
            background-color: #f8f9fa;
            border-bottom: none;
            border-radius: 15px 15px 0 0;
        }

        .upload-area {
            border: 2px dashed #ced4da;
            border-radius: 10px;
            cursor: pointer;
            padding: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            position: relative;
            overflow: hidden;
        }

        .upload-area:hover {
            border-color: var(--primary-color);
            background-color: #f8f9fa;
        }

        .upload-area.has-image {
            border: none;
            padding: 0;
        }

        .upload-area img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        .card:hover {
            background-color: #e9ecef;
        }

        .remove-btn {
            z-index: 99;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .upload-area:hover .remove-btn {
            opacity: 1;
        }

        .card:hover {
            background-color: #FAF6FF !important;
        }

        #cropContainer {
            height: 70vh;
            width: 100%;
            min-height: 400px;
        }

        #cropImage {
            max-width: 100%;
            max-height: 100%;
            display: block;
        }

        .card:hover {
            background-color: #FAF6FF !important;
        }


        .cropper-modal {
            background: transparent !important;
        }

        /* Fix for delete button visibility */
        .upload-area.has-image .remove-btn {
            opacity: 1;
            /* Always visible when image is uploaded */
        }

        .upload-area.has-image:hover .remove-btn {
            opacity: 1;
            /* Maintain visibility on hover */
        }

        /* Responsive Adjustments */
        @media (max-width: 768px) {
            #cropContainer {
                height: 300px;
            }

            .modal-xl {
                max-width: 95%;
                margin: 0.5rem auto;
            }
        }

        @media (max-width: 576px) {
            .container {
                padding: 1rem;
            }

            .form-label {
                font-size: 0.9rem;
            }

            .btn-primary-custom {
                padding: 0.5rem 1rem;
                font-size: 0.9rem;
            }

            #cropContainer {
                height: 250px;
            }
        }

/* Add Doctor Styles */