/*
 * Breast Specialists Portal - Modern Stylesheet
 * A professional theme focused on breast health
 */

:root {
    /* Primary Colors - Pink shades for breast cancer awareness */
    --bs-primary: #e83e8c;           /* Pink - breast cancer awareness */
    --bs-primary-rgb: 232, 62, 140;
    --bs-primary-dark: #d4267a;
    --bs-primary-light: #f06da7;
    
    /* Secondary Colors */
    --bs-secondary: #6c757d;         /* Gray */
    --bs-secondary-rgb: 108, 117, 125;
    
    /* Neutral Colors */
    --bs-light: #f8f9fa;
    --bs-light-rgb: 248, 249, 250;
    --bs-dark: #343a40;
    --bs-dark-rgb: 52, 58, 64;
    
    /* Accent Colors */
    --bs-teal: #20c997;              /* Teal for complementary contrast */
    --bs-teal-rgb: 32, 201, 151;
    --bs-indigo: #6610f2;            /* Indigo for highlighting important elements */
    --bs-indigo-rgb: 102, 16, 242;
    
    /* Status Colors */
    --bs-success: #28a745;
    --bs-success-rgb: 40, 167, 69;
    --bs-info: #17a2b8;
    --bs-info-rgb: 23, 162, 184;
    --bs-warning: #ffc107;
    --bs-warning-rgb: 255, 193, 7;
    --bs-danger: #dc3545;
    --bs-danger-rgb: 220, 53, 69;
    
    /* Body */
    --bs-body-bg: #f8f9fa;
    --bs-body-color: #212529;
    --bs-body-font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    
    /* Typography */
    --bs-font-sans-serif: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --bs-headings-font-family: 'Montserrat', sans-serif;
    
    /* Border Radius */
    --bs-border-radius: 0.375rem;
    --bs-border-radius-sm: 0.25rem;
    --bs-border-radius-lg: 0.5rem;
    --bs-border-radius-xl: 1rem;
    --bs-border-radius-2xl: 2rem;
    --bs-border-radius-pill: 50rem;
    
    /* Transition */
    --bs-transition: all 0.3s ease-in-out;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

/* Override Bootstrap colors */
.bg-primary {
    background-color: var(--bs-primary) !important;
}
.text-primary {
    color: var(--bs-primary) !important;
}
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary-dark);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--bs-primary-dark);
    border-color: var(--bs-primary-dark);
}
.btn-outline-primary {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

/* General body styling */
body {
    font-family: var(--bs-body-font-family);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    transition: var(--bs-transition);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--bs-headings-font-family);
    font-weight: 600;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(248, 249, 250, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--bs-primary) !important;
}

/* Navigation */
.navbar {
    transition: var(--bs-transition);
    padding: 0.5rem 1rem;
}
.navbar-light {
    background-color: white;
}
.navbar-brand img {
    transition: var(--bs-transition);
}
.navbar-brand:hover img {
    transform: scale(1.05);
}
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: var(--bs-transition);
}
.nav-link:hover {
    color: var(--bs-primary) !important;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--bs-primary);
    transition: var(--bs-transition);
    transform: translateX(-50%);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}
.nav-link.active {
    color: var(--bs-primary) !important;
    font-weight: 600;
}
.dropdown-menu {
    border: none;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}
.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: var(--bs-transition);
}
.dropdown-item:hover, .dropdown-item:focus {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
}

/* Cards */
.card {
    border: none;
    border-radius: var(--bs-border-radius);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: var(--bs-transition);
    overflow: hidden;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.card-img-top {
    transition: var(--bs-transition);
}
.card:hover .card-img-top {
    transform: scale(1.05);
}
.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
}
.card-footer {
    background-color: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: var(--bs-border-radius);
    transition: var(--bs-transition);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}
.btn:active {
    transform: translateY(0);
}
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--bs-primary-dark);
    border-color: var(--bs-primary-dark);
}
.btn-floating {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}
.btn-floating i {
    font-size: 1.25rem;
}

/* Forms */
.form-control {
    border-radius: var(--bs-border-radius);
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    transition: var(--bs-transition);
}
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.form-select {
    padding: 0.75rem 2.25rem 0.75rem 1rem;
    border-radius: var(--bs-border-radius);
}
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}
.input-group {
    border-radius: var(--bs-border-radius);
    overflow: hidden;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--bs-border-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.alert-success {
    background-color: rgba(40, 167, 69, 0.15);
    color: #155724;
}
.alert-info {
    background-color: rgba(23, 162, 184, 0.15);
    color: #0c5460;
}
.alert-warning {
    background-color: rgba(255, 193, 7, 0.15);
    color: #856404;
}
.alert-danger {
    background-color: rgba(220, 53, 69, 0.15);
    color: #721c24;
}

/* Tables */
.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}
.table th {
    font-weight: 600;
    background-color: rgba(108, 117, 125, 0.1);
    border-bottom: 2px solid #dee2e6;
}
.table td, .table th {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}
.table-hover tbody tr:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: var(--bs-border-radius-pill);
}
.badge-primary {
    background-color: var(--bs-primary);
}

/* Pagination */
.pagination {
    margin-bottom: 0;
}
.page-link {
    color: var(--bs-primary);
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    transition: var(--bs-transition);
}
.page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: var(--bs-primary-dark);
}
.page-item.active .page-link {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Footer */
.footer {
    background-color: var(--bs-primary);
    color: white;
    padding: 1rem 0;
}
.footer a {
    color: white;
    transition: var(--bs-transition);
}
.footer a:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: var(--bs-border-radius);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
}
.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: var(--bs-light);
}
.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background-color: var(--bs-light);
}

/* Progress */
.progress {
    height: 0.75rem;
    border-radius: var(--bs-border-radius-pill);
    background-color: #e9ecef;
    margin: 1rem 0;
}
.progress-bar {
    background-color: var(--bs-primary);
}

/* Breadcrumb */
.breadcrumb {
    padding: 0.75rem 1rem;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: var(--bs-border-radius);
}
.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
    line-height: 1;
    color: var(--bs-secondary);
}
.breadcrumb-item.active {
    color: var(--bs-primary);
    font-weight: 500;
}

/* Custom components for breast healthcare */
.ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    overflow: hidden;
}
.ribbon::before, .ribbon::after {
    position: absolute;
    z-index: -1;
    content: '';
    display: block;
    border: 5px solid var(--bs-primary-dark);
}
.ribbon span {
    position: absolute;
    display: block;
    width: 180px;
    padding: 8px 0;
    background-color: var(--bs-primary);
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    text-align: center;
    right: -43px;
    top: 32px;
    transform: rotate(45deg);
}

.awareness-icon {
    color: var(--bs-primary);
    font-size: 2.5rem;
    margin: 1rem 0;
    transition: var(--bs-transition);
}
.awareness-icon:hover {
    transform: scale(1.1);
}

/* Health Dashboard Boxes */
.health-stat-box {
    background-color: white;
    border-radius: var(--bs-border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: var(--bs-transition);
}
.health-stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.health-stat-box .stat-title {
    color: var(--bs-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.health-stat-box .stat-value {
    color: var(--bs-dark);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.health-stat-box .stat-change {
    font-size: 0.875rem;
    font-weight: 500;
}
.health-stat-box .stat-icon {
    font-size: 3rem;
    opacity: 0.1;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* Animation Utilities */
.animate-hover {
    transition: var(--bs-transition);
}
.animate-hover:hover {
    transform: translateY(-5px);
}
.animate-scale-hover {
    transition: var(--bs-transition);
}
.animate-scale-hover:hover {
    transform: scale(1.05);
}

/* Timeline for patient history */
.timeline {
    position: relative;
    padding: 20px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--bs-primary-light);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}
.timeline-item {
    position: relative;
    margin-bottom: 30px;
}
.timeline-item::after {
    content: '';
    display: block;
    clear: both;
}
.timeline-content {
    position: relative;
    width: 45%;
    padding: 20px;
    background-color: white;
    border-radius: var(--bs-border-radius);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.timeline-content::after {
    content: '';
    position: absolute;
    top: calc(50% - 10px);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}
.timeline-item:nth-child(odd) .timeline-content {
    float: left;
}
.timeline-item:nth-child(odd) .timeline-content::after {
    right: -10px;
    border-left: 10px solid white;
}
.timeline-item:nth-child(even) .timeline-content {
    float: right;
}
.timeline-item:nth-child(even) .timeline-content::after {
    left: -10px;
    border-right: 10px solid white;
}
.timeline-date {
    color: var(--bs-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--bs-primary);
    border-radius: 50%;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    z-index: 1;
}

/* Helper utilities */
.shadow-hover {
    transition: var(--bs-transition);
}
.shadow-hover:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}
.rounded-custom {
    border-radius: var(--bs-border-radius) !important;
}
.text-pink {
    color: var(--bs-primary) !important;
}
.bg-pink-light {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}
.bg-pink-gradient {
    background: linear-gradient(45deg, var(--bs-primary), var(--bs-primary-light)) !important;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem;
    }
    .nav-link::after {
        display: none;
    }
    .timeline::before {
        left: 40px;
    }
    .timeline-content {
        width: calc(100% - 80px);
        float: right !important;
    }
    .timeline-item:nth-child(odd) .timeline-content::after {
        right: auto;
        left: -10px;
        border-left: none;
        border-right: 10px solid white;
    }
    .timeline-dot {
        left: 40px;
    }
}

@media (max-width: 767.98px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    .card {
        margin-bottom: 1.5rem;
    }
}

/* Print styles */
@media print {
    body {
        background-color: white !important;
    }
    .navbar, .footer, .no-print {
        display: none !important;
    }
    .container {
        width: 100% !important;
        max-width: 100% !important;
    }
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}

/* Special elements for breast awareness */
.pink-ribbon {
    display: inline-block;
    width: 50px;
    height: 85px;
    background-color: var(--bs-primary);
    position: relative;
    text-align: center;
    transform: rotate(45deg);
    margin: 1rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}
.pink-ribbon:before, .pink-ribbon:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 25px;
    background-color: var(--bs-primary);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}
.pink-ribbon:before {
    bottom: -12.5px;
    left: -25px;
    border-radius: 25px 25px 0 0;
    transform: rotate(-45deg);
}
.pink-ribbon:after {
    bottom: -12.5px;
    right: -25px;
    border-radius: 25px 25px 0 0;
    transform: rotate(45deg);
}

/* Login page specific */
.login-container {
    max-width: 400px;
    padding: 2rem;
    border-radius: var(--bs-border-radius);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background-color: white;
    margin: 5rem auto;
}
.login-logo {
    display: block;
    max-width: 200px;
    margin: 0 auto 2rem;
}
.login-form .form-floating {
    margin-bottom: 1rem;
}
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--bs-secondary);
    z-index: 10;
}

/* For the Zoom meetings list */
.meeting-list {
    list-style: none;
    padding: 0;
}
.meeting-list li {
    background-color: white;
    border-radius: var(--bs-border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--bs-transition);
}
.meeting-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}
.join-button {
    background-color: var(--bs-primary);
    color: white !important;
    padding: 0.375rem 0.75rem;
    border-radius: var(--bs-border-radius);
    text-decoration: none;
    transition: var(--bs-transition);
    font-weight: 500;
}
.join-button:hover {
    background-color: var(--bs-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Patient history section */
.patient-info-card {
    border-left: 4px solid var(--bs-primary);
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--bs-border-radius);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
    transition: var(--bs-transition);
}
.patient-info-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.patient-info-card .patient-name {
    color: var(--bs-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.patient-info-card .patient-meta {
    color: var(--bs-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.patient-info-card .patient-history {
    line-height: 1.6;
}