/* Custom styles for Nyalife HMS */

/* Consultation view page styles */
#consultationAccordion .accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

#consultationAccordion .accordion-button {
    background-color: #fff;
    color: #212529;
    font-weight: 500;
    padding: 15px 20px;
    box-shadow: none;
    transition: all 0.3s ease;
}

#consultationAccordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#consultationAccordion .accordion-button:not(.collapsed) i {
    color: #fff !important;
}

#consultationAccordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

#consultationAccordion .accordion-button:hover {
    background-color: #f8f9fa;
}

#consultationAccordion .accordion-button:not(.collapsed):hover {
    background: linear-gradient(135deg, #ff1493, #ff69b4);
}

#consultationAccordion .accordion-body {
    background-color: #fff;
    padding: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #212529;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Card header styling */
.card-header.bg-primary {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    border: none;
}

/* Badge styling */
.badge.bg-primary {
    background: linear-gradient(135deg, #ff69b4, #ff1493) !important;
}

/* Avatar styling */
.avatar.bg-primary {
    background-color: rgba(255, 105, 180, 0.1) !important;
}

.avatar.bg-primary i {
    color: #ff1493 !important;
}

/* Vital signs styling */
.accordion-body .text-dark.fw-bold {
    color: #212529 !important;
    font-weight: 600 !important;
    font-size: 14px;
}

/* Profile image container styling */
.profile-image-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #e9ecef;
    transition: all 0.3s ease;
}

.profile-image-container:hover {
    border-color: #c5f330;
    box-shadow: 0 4px 8px rgba(197, 243, 48, 0.2);
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-image-container i {
    color: #6c757d;
    font-size: 3rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    #consultationAccordion .accordion-button {
        padding: 12px 15px;
    }
    
    #consultationAccordion .accordion-body {
        padding: 15px;
        font-size: 14px;
    }
    
    .profile-image-container {
        width: 80px;
        height: 80px;
    }
    
    .profile-image-container i {
        font-size: 2.5rem;
    }
} 

/* Authentication pages (login/register/forgot) - center content and hide footer */
.auth-page .main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: calc(100vh - 60px); /* leave room for header */
}

.auth-page .main-content > * {
    width: 100%;
    max-width: 920px; /* increased so auth cards (forgot password) can be larger */
}

.auth-page .card {
    width: 100%;
    max-width: 900px;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.10);
}

.auth-page .card .card-body {
    padding: 2.2rem 2.6rem;
}

.auth-page .main-content {
    min-height: calc(100vh - 120px);
}

.auth-page .card .card-header {
    background: linear-gradient(135deg, #ff69b4 0%, #20c997 100%) !important;
    color: #ffffff !important;
    border-bottom: none !important;
}

.auth-page .card .card-header, .auth-page .card .card-header * {
    color: #ffffff !important;
}

/* Guest appointment form - limit width */
.container-fluid > .row.justify-content-center > .col-12.col-lg-10.col-xl-8 .card {
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .container-fluid > .row.justify-content-center > .col-12.col-lg-10.col-xl-8 {
        max-width: 900px;
        margin: 0 auto;
    }
}

@media (min-width: 1200px) {
    .container-fluid > .row.justify-content-center > .col-12.col-lg-10.col-xl-8 {
        max-width: 1000px;
    }
}

.auth-page .form-control {
    padding: 12px 14px;
    border-radius: 999px;
}

.auth-page .btn {
    padding: 10px 16px;
}

.auth-page footer {
    display: none !important;
}

/* Field status icon used by live validation */
.auth-page .field-status-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.05rem;
    pointer-events: none;
}

.auth-page .position-relative .form-control {
    padding-right: 3.2rem; /* make room for the icon */
}

/* Multi-step form transitions */
.multi-step-form .form-step {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.35s ease;
}

.multi-step-form .form-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.registration-steps {
    position: relative;
}

/* Step dots */
.step-dots .step-dot{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:28px;
    border-radius:50%;
    background:#e9ecef;
    color:#495057;
    font-size:0.85rem;
    font-weight:600;
}
.step-dots .step-dot.active{
    background: linear-gradient(90deg,#20c997,#ff1493);
    color: #fff;
    box-shadow: 0 4px 10px rgba(32,201,151,0.18);
}

/* Progress bar */
.register-progress-wrapper{
    height:4px;
    background: rgba(0,0,0,0.04);
    border-radius:2px;
    overflow:hidden;
}
.register-progress-bar{
    height:100%;
    background: linear-gradient(90deg,#20c997,#ff1493);
    width:0%;
    transition: width 0.4s ease;
}

/* Visually hidden accessible region */
.visually-hidden{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap;border:0;padding:0;margin:-1px}

/* Remove bottom border for registration header area */
.registration-header{border-bottom:none;padding-bottom:0}

/* Auth page form control contrast and pill-shaped selects */
.auth-page .form-control,
.auth-page input.form-control,
.auth-page textarea.form-control {
    background-color: #fbfbfb; /* slightly darker for contrast */
    border: 1px solid var(--border-color);
    color: #222222;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.579);
}

.auth-page .form-control:focus,
.auth-page input.form-control:focus,
.auth-page textarea.form-control:focus {
    background-color: #f6fbfb;
    border-color: rgba(32,201,151,0.9);
    box-shadow: 0 0 0 0.15rem rgba(32,201,151,0.12);
    outline: none;
}

/* Make selects pill-shaped and match inputs */
.auth-page .form-select {
    background-color: #eef3f5;
    border: 1px solid rgba(0,0,0,0.08);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
    border-radius: 999px;
    padding: 0.55rem 1rem;
    height: auto;
    color: #222222;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none; /* let browser render default caret */
}

.auth-page .form-select:focus {
    border-color: rgba(32,201,151,0.9);
    box-shadow: 0 0 0 0.15rem rgba(32,201,151,0.12);
}

/* Ensure input groups also become pill-shaped */
.auth-page .input-group .form-control,
.auth-page .input-group .form-select {
    border-radius: 999px;
}

/* Smaller screens: keep inputs readable */
@media (max-width: 576px) {
    .auth-page .form-control,
    .auth-page .form-select {
        padding: 10px 14px;
    }
}

/* 
   --------------------------------------------------------------
   Card Header Button Styling - Global Overrides 
   --------------------------------------------------------------
*/

/* 1. Default Case & Colored Backgrounds: 
   Since .card-header has a gradient by default in this theme, 
   buttons should default to White Outline.
*/
.card-header .btn,
.card-header[class*="bg-"] .btn,
.card-header[style*="gradient"] .btn {
    border-radius: 50px !important; /* Pill shape */
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    color: white !important;
    box-shadow: none !important;
}

.card-header .btn:hover,
.card-header[class*="bg-"] .btn:hover,
.card-header[style*="gradient"] .btn:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: white !important;
    color: white !important;
}

/* 2. White/Transparent Background Case:
   Only when explicitly white/light/transparent.
   Rule: Green Font, Green Outline, Transparent BG.
*/
.card-header.bg-white .btn,
.card-header.bg-light .btn,
.card-header.bg-transparent .btn {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    background-color: transparent !important;
}

.card-header.bg-white .btn:hover,
.card-header.bg-light .btn:hover,
.card-header.bg-transparent .btn:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* Ensure icons inherit the color */
.card-header .btn i {
    color: inherit !important;
}