/* --- Base Styles --- */
:root {
    /* Elapha Brand Colors */
    --primary-yellow: #FFD700;
    --secondary-yellow: #E0C000;
    --primary-black: #000000;
    --text-color-dark: var(--primary-black);
    --text-color-medium: #646464;
    --text-color-light: #FFFFFF;

    /* Backgrounds and Borders */
    --page-bg: #F0F0F0;
    --card-bg: #FFFFFF;
    --border-light: #E8E8E8;
    --border-medium: #D8D8D8;

    /* Status colors */
    --green-online: #34C759;
    --red-offline: #FF3B30;
    --orange-pending: #FF9500;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--page-bg);
    margin: 0;
    color: var(--text-color-dark);
}

/* --- Shared Components --- */
.card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.card h3 {
    margin-top: 0;
    color: var(--text-color-dark);
    font-size: 1.25em;
    font-weight: 600;
}

/* --- Header Styles --- */
.headerfixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 20px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
}

.header .wrapper {
    display: contents;
}

.header .logoletter {
    height: 45px;
    grid-column: 1;
}

#searching {
    grid-column: 2;
    max-width: 600px;
    justify-self: center;
}

#main-site-search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 1em;
}

.icon-bar {
    grid-column: 3;
    justify-self: end;
}

.icon-bar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.icon-bar li a {
    text-decoration: none;
    color: var(--text-color-medium);
    font-size: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: color 0.3s;
}

.icon-bar li a:hover,
.icon-bar li a.active {
    color: var(--primary-yellow);
}

.icon-bar li a p {
    margin: 5px 0 0;
    font-size: 0.8em;
}

/* --- Main Content and Layout --- */
.main-content {
    padding-top: 80px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 80px 20px 20px;
}

.columns-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.left-column,
.right-column {
    flex-basis: 25%;
    max-width: 25%;
    flex-shrink: 0;
}

.center-column {
    flex-grow: 1;
    flex-basis: 50%;
    max-width: 50%;
}

/* --- Dashboard Specific Styles --- */

/* Patient Profile Card on Dashboard */
.patient-profile-card {
    text-align: center;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.patient-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-yellow);
}

.profile-info h3 {
    margin: 0 0 0.25rem 0;
    color: var(--primary-black);
}

.patient-id {
    color: var(--text-color-medium);
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-black);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-color-medium);
}

/* Subscription Badges */
.subscription-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.subscription-badge.free {
    background-color: var(--border-light);
    color: var(--text-color-medium);
}

.subscription-badge.paid {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
}

/* Video Call Buttons */
.video-call-btn {
    transition: all 0.3s;
}

.video-call-btn.restricted {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.video-call-btn.restricted::after {
    content: "🔒";
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.8rem;
}

.video-call-btn:not(.restricted):hover {
    background-color: var(--primary-yellow);
    transform: translateY(-1px);
}

/* Doctor Actions */
.doctor-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.doctor-actions button {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.doctor-actions button:hover:not(.restricted) {
    background-color: var(--page-bg);
}

/* Plan Features */
.plan-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--text-color-medium);
}

.plan-features .fa-check {
    color: #27ae60;
}

.plan-features .fa-times {
    color: #e74c3c;
}

/* Welcome Message */
.welcome-message {
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-yellow));
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.welcome-message h2 {
    margin: 0 0 0.5rem 0;
}

.welcome-message a {
    color: var(--primary-black);
    font-weight: 600;
    text-decoration: underline;
}

/* Consultation Card */
.consultation-card {
    background-color: var(--primary-yellow);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.consultation-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.consultation-actions {
    display: flex;
    gap: 0.5rem;
}

.consultation-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.consultation-btn:first-child {
    background-color: var(--primary-black);
    color: white;
}

.consultation-btn:last-child {
    background-color: transparent;
    border: 1px solid var(--primary-black);
    color: var(--primary-black);
}

/* --- Form and Post Styles --- */
.create-post-card {
    padding: 20px;
}

#create-post-form {
    display: flex;
    flex-direction: column;
}

#post-content {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    resize: vertical;
    margin-bottom: 10px;
    box-sizing: border-box;
}

#create-post-form button {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    align-self: flex-end;
}

.posts-list .post {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.doctor-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.post-info h4 {
    margin: 0;
    font-size: 1.1em;
}

.post-info p {
    margin: 0;
    color: var(--text-color-medium);
    font-size: 0.9em;
}

.post-content p {
    margin: 0;
    line-height: 1.5;
}

.news-list {
    font-size: 0.9em;
}

/* Styles for Doctor Profile Preview and Follow button */
.doctor-profile-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.doctor-profile-preview:last-child {
    border-bottom: none;
}

.doctor-details {
    flex-grow: 1;
}

.follow-btn {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

/* Styles for Post Footer and Like button */
.post-footer {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.post-footer button {
    background: none;
    border: none;
    color: var(--text-color-medium);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-footer button:hover:not(.restricted) {
    background-color: var(--page-bg);
    color: var(--primary-black);
}

.post-footer button.restricted {
    opacity: 0.5;
    cursor: not-allowed;
}

.like-btn:hover {
    color: var(--primary-yellow);
}

/* --- Profile Page Specific Styles --- */
.profile-overview {
    text-align: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-yellow);
}

.profile-name {
    margin: 0.5rem 0;
    color: var(--primary-black);
}

.profile-id {
    color: var(--text-color-medium);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.contact-info h4 {
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0;
    color: var(--text-color-medium);
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Quick Stats */
.quick-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background-color: var(--page-bg);
    border-radius: 8px;
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--primary-yellow);
    width: 40px;
    text-align: center;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-black);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-color-medium);
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color-medium);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
}

/* Medical History */
.medical-history {
    margin-bottom: 1.5rem;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--page-bg);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.history-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-icon i {
    color: var(--primary-black);
}

.history-details {
    flex: 1;
}

.history-details h4 {
    margin: 0 0 0.25rem 0;
    color: var(--primary-black);
}

.history-details p {
    margin: 0;
    color: var(--text-color-medium);
}

.edit-btn {
    background: none;
    border: none;
    color: var(--text-color-medium);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.edit-btn:hover {
    background-color: var(--page-bg);
    color: var(--primary-black);
}

/* Insurance & Emergency Contact */
.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.info-item:last-child {
    border-bottom: none;
}

.status-active {
    color: #27ae60;
    font-weight: 600;
}

.emergency-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-avatar i {
    color: var(--primary-black);
    font-size: 1.25rem;
}

.contact-details h4 {
    margin: 0 0 0.25rem 0;
    color: var(--primary-black);
}

.relationship {
    color: var(--text-color-medium);
    font-size: 0.9rem;
    margin: 0 0 0.25rem 0;
}

.contact-phone,
.contact-email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--text-color-medium);
}

/* Mini Doctor List */
.doctor-list-mini {
    margin-bottom: 1rem;
}

.doctor-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: var(--page-bg);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.doctor-info h5 {
    margin: 0 0 0.25rem 0;
    color: var(--primary-black);
}

.doctor-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-color-medium);
}

/* Button Styles */
.full-width-btn {
    width: 100%;
    justify-content: center;
}

/* --- Messages Page Styles --- */
.messages-content {
    display: flex;
    gap: 1rem;
}

.conversation-list {
    flex: 1;
    max-width: 300px;
}

.chat-area {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    max-height: 400px;
}

.message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    max-width: 70%;
}

.message.received {
    background-color: var(--page-bg);
    align-self: flex-start;
}

.message.sent {
    background-color: var(--primary-yellow);
    align-self: flex-end;
    margin-left: auto;
}

.message-timestamp {
    font-size: 0.75rem;
    color: var(--text-color-medium);
    display: block;
    margin-top: 0.25rem;
}

.chat-input-area {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid var(--border-light);
}

/* --- Reports Page Styles --- */
.report-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.report-icon {
    font-size: 2rem;
    color: #e74c3c;
}

.report-details {
    flex: 1;
}

.report-actions {
    display: flex;
    gap: 0.5rem;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-btn {
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: white;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn.active, .category-btn:hover {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: white;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background-color: var(--page-bg);
}

/* --- Settings Page Styles --- */
.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-color-medium);
    border-radius: 8px;
    transition: all 0.3s;
}

.settings-nav-item:hover {
    background-color: var(--page-bg);
    color: var(--primary-black);
}

.settings-nav-item.active {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    font-weight: 500;
}

.settings-nav-item i {
    width: 20px;
    text-align: center;
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.settings-option:last-child {
    border-bottom: none;
}

.settings-info {
    flex: 1;
}

.settings-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--primary-black);
    font-weight: 500;
}

.settings-info p {
    margin: 0;
    color: var(--text-color-medium);
    font-size: 0.9rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-medium);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-yellow);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Subscription Info */
.subscription-info {
    text-align: center;
}

.subscription-desc {
    color: var(--text-color-medium);
    margin-bottom: 1rem;
}

.subscription-features {
    text-align: left;
    margin: 1.5rem 0;
}

.subscription-features p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    color: var(--text-color-medium);
}

.subscription-features i {
    color: var(--primary-yellow);
}

/* Select Styles */
.settings-select {
    padding: 0.5rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background-color: white;
    color: var(--primary-black);
    font-family: 'Inter', sans-serif;
    min-width: 120px;
}

/* Button Variants */
.primary-btn {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.primary-btn:hover {
    background-color: var(--secondary-yellow);
}

.secondary-btn {
    background-color: var(--page-bg);
    color: var(--primary-black);
    border: 1px solid var(--border-light);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.secondary-btn:hover {
    background-color: var(--border-light);
}

.danger-btn {
    background-color: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.danger-btn:hover {
    background-color: #ffcdd2;
}

/* Logout Card */
.logout-card {
    border-left: 4px solid var(--primary-yellow);
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color-medium);
}

.payment-form {
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

/* Upgrade Feature Modal */
.upgrade-feature {
    text-align: center;
    padding: 2rem;
}

.upgrade-feature i {
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.upgrade-feature h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-black);
}

.upgrade-feature p {
    color: var(--text-color-medium);
    margin: 0.5rem 0;
}

/* --- Footer Styles --- */
.footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--border-light);
    margin-top: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-color-dark);
    font-size: 0.9em;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .columns-container {
        flex-direction: column;
    }
    
    .left-column,
    .center-column,
    .right-column {
        flex-basis: 100%;
        max-width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .history-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .emergency-contact {
        flex-direction: column;
        text-align: center;
    }
    
    .settings-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .settings-option > *:last-child {
        align-self: flex-end;
    }
    
    .messages-content {
        flex-direction: column;
    }
    
    .conversation-list {
        max-width: 100%;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .consultation-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .consultation-actions {
        justify-content: center;
    }
}

/* --- Utility Classes --- */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}
/* --- Admin Dashboard Compatibility Styles --- */
/* These styles only affect the admin dashboard and won't impact other pages */

/* Sidebar Styles for Admin Dashboard */
.sidebar {
    width: 250px;
    background-color: #1E2832;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
}

.sidebar .logo {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar .logo img {
    width: 150px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    color: #FFFFFF;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar-menu a:hover {
    background-color: #374755;
}

.sidebar-menu a.active {
    background-color: #FFD700;
    color: #000000;
    font-weight: 600;
}

.sidebar-menu i {
    margin-right: 15px;
    font-size: 1.2em;
}

/* Main Content Area for Admin Dashboard */
.main-content.admin-dashboard {
    flex-grow: 1;
    margin-left: 250px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Dashboard Header for Admin */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E8E8E8;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

/* User Profile Header in Admin Dashboard */
.user-profile-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.user-profile-header i {
    font-size: 1.5rem;
    color: #646464;
}

/* Admin Dashboard Content */
.dashboard-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Application Items for Admin Dashboard */
.application-item {
    border: 1px solid #E8E8E8;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    background-color: #FFFFFF;
}

.application-item h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.application-item p {
    margin: 5px 0;
    color: #646464;
}

.application-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.btn-approve, .btn-reject {
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-approve {
    background: #34C759;
    color: white;
}

.btn-approve:hover {
    background: #219641;
}

.btn-reject {
    background: #FF3B30;
    color: white;
}

.btn-reject:hover {
    background: #d13227;
}

.application-item.approved {
    border-left: 4px solid #34C759;
}

.application-item.rejected {
    border-left: 4px solid #FF3B30;
}

/* Modal Styles for Admin Dashboard */
.modal.admin-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
}

.modal-content.admin-modal {
    background-color: #FFFFFF;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.close:hover {
    color: black;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Textarea for rejection reason */
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    margin: 10px 0;
    box-sizing: border-box;
}

/* Responsive for Admin Dashboard */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
        padding: 10px;
    }
    
    .sidebar .logo img {
        width: 50px;
    }
    
    .sidebar-menu a span {
        display: none;
    }
    
    .sidebar-menu i {
        margin-right: 0;
        font-size: 1.5em;
    }
    
    .main-content.admin-dashboard {
        margin-left: 70px;
        padding: 15px;
    }
    
    .application-actions {
        flex-direction: column;
    }
}
.gold-shield-badge {
  color: #4CAF50;
  font-size: 0.9em;
  margin-left: 6px;
}
/* === MEDICAL AID & APPOINTMENT BOOKING STYLES === */
/* Added to extend existing functionality without breaking current design */

/* Appointment Booking Modal */
.appointment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.appointment-modal.active {
    opacity: 1;
    visibility: visible;
}

.appointment-modal-content {
    background-color: var(--card-bg);
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.appointment-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.appointment-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color-medium);
}

.appointment-modal-body {
    padding: 20px;
}

/* Appointment Steps */
.appointment-steps {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-light);
}

.appointment-step {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-color-medium);
}

.appointment-step.active {
    border-bottom-color: var(--primary-yellow);
    color: var(--primary-black);
}

.appointment-step-content {
    display: none;
}

.appointment-step-content.active {
    display: block;
}

/* Doctor Selection */
.doctor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.doctor-card {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.doctor-card:hover {
    border-color: var(--primary-yellow);
}

.doctor-card.selected {
    border-color: var(--primary-yellow);
    background-color: rgba(255, 215, 0, 0.05);
}

.doctor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid var(--primary-yellow);
}

.doctor-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.doctor-specialty {
    color: var(--text-color-medium);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.doctor-rating {
    color: var(--primary-yellow);
    font-size: 0.9rem;
}

/* Calendar */
.calendar-container {
    margin-top: 15px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-nav {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--primary-yellow);
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.calendar-nav:hover {
    background-color: var(--page-bg);
}

.calendar-month {
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    padding: 10px 0;
    color: var(--text-color-medium);
    font-size: 0.9rem;
}

.calendar-day {
    text-align: center;
    padding: 10px 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.calendar-day:hover {
    background-color: var(--page-bg);
}

.calendar-day.selected {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
}

.calendar-day.disabled {
    color: var(--border-medium);
    cursor: not-allowed;
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.time-slot {
    padding: 10px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-slot:hover {
    border-color: var(--primary-yellow);
}

.time-slot.selected {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    border-color: var(--primary-yellow);
}

/* Appointment Summary */
.appointment-summary {
    background-color: var(--page-bg);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.appointment-detail {
    display: flex;
    margin-bottom: 10px;
}

.appointment-detail-label {
    font-weight: 600;
    width: 120px;
}

.appointment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}

/* Confirmation */
.appointment-confirmation {
    text-align: center;
    padding: 30px 0;
}

.confirmation-icon {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 20px;
}

.appointment-success {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
}

.appointment-success h4 {
    color: #0369a1;
    margin-top: 0;
}

/* === MEDICAL AID MODAL STYLES === */
.medical-aid-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.medical-aid-modal.active {
    opacity: 1;
    visibility: visible;
}

.medical-aid-modal-content {
    background-color: var(--card-bg);
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.medical-aid-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.medical-aid-modal-header h3 {
    margin: 0;
    color: var(--text-color-dark);
    font-size: 1.25em;
    font-weight: 600;
}

.medical-aid-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color-medium);
}

.medical-aid-modal-body {
    padding: 20px;
}

/* Medical Aid Tabs */
.tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
}

.tab-button {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    color: var(--text-color-medium);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-button.active {
    color: var(--primary-black);
    border-bottom-color: var(--primary-yellow);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Medical Aid Plans */
.medical-aid-plans {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.medical-aid-plan {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--card-bg);
}

.medical-aid-plan:hover {
    border-color: var(--primary-yellow);
}

.medical-aid-plan.selected {
    border-color: var(--primary-yellow);
    background-color: rgba(255, 215, 0, 0.05);
}

.plan-name {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--text-color-dark);
}

.plan-provider {
    color: var(--text-color-medium);
    margin-bottom: 10px;
}

.plan-features {
    list-style-type: none;
    padding: 0;
    margin: 15px 0;
}

.plan-features li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-color-medium);
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features li i {
    color: var(--primary-yellow);
}

.plan-price {
    font-weight: 600;
    color: var(--primary-yellow);
    margin-top: 10px;
}

/* Benefits */
.benefits-container {
    margin-top: 20px;
}

.benefit-category {
    margin-bottom: 25px;
}

.benefit-category h4 {
    margin-bottom: 15px;
    color: var(--text-color-dark);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 8px;
    font-weight: 600;
}

.benefit-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 10px;
    background-color: var(--page-bg);
    border-radius: 6px;
}

.benefit-name {
    font-weight: 500;
    color: var(--text-color-dark);
}

.benefit-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: right;
    font-size: 0.9rem;
}

/* Medical Aid Link */
.medical-aid-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 500;
    margin: 10px 0;
    padding: 8px 12px;
    border: 1px solid var(--primary-yellow);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.medical-aid-link:hover {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    text-decoration: none;
}

/* Button Styles */
.btn-secondary {
    background-color: var(--page-bg);
    color: var(--primary-black);
    border: 1px solid var(--border-light);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-secondary:hover {
    background-color: var(--border-light);
}

.btn-primary {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--secondary-yellow);
}

.btn-primary:disabled {
    background-color: var(--border-medium);
    color: var(--text-color-medium);
    cursor: not-allowed;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color-medium);
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-yellow);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.medical-aid-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
    .medical-aid-plans {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .medical-aid-actions {
        flex-direction: column;
    }
}
/* Call Interface Modal Styling */
.call-interface-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.call-interface-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.call-interface-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(74, 108, 247, 0.3);
  border: 1px solid #e8edff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.call-interface-header {
  background: linear-gradient(135deg, #4a6cf7, #3a5ce5);
  color: white;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e8edff;
}

.call-interface-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.call-interface-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.call-interface-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.call-interface-body {
  padding: 25px;
  flex: 1;
  overflow-y: auto;
}

/* Search and Filter Section */
.call-search-section {
  margin-bottom: 25px;
}

.call-search-input {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
}

.call-search-input:focus {
  outline: none;
  border-color: #4a6cf7;
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.call-filters {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.call-filter-btn {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  color: #475569;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.call-filter-btn.active {
  background: #4a6cf7;
  color: white;
  border-color: #4a6cf7;
}

/* Contact List Styling */
.call-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
}

.call-contact-item {
  background: white;
  border: 2px solid #f1f5f9;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.call-contact-item:hover {
  border-color: #4a6cf7;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 108, 247, 0.15);
}

.call-contact-item.online {
  border-left: 4px solid #10b981;
}

.call-contact-item.offline {
  border-left: 4px solid #64748b;
}

.call-contact-item.in-appointment {
  border-left: 4px solid #f59e0b;
}

.contact-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e2e8f0;
}

.contact-avatar.online {
  border-color: #10b981;
}

.contact-avatar.offline {
  border-color: #64748b;
}

.contact-info {
  flex: 1;
}

.contact-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 5px 0;
}

.contact-role {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0 0 5px 0;
}

.contact-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
}

.status-online {
  color: #10b981;
  font-weight: 500;
}

.status-offline {
  color: #64748b;
}

.status-busy {
  color: #f59e0b;
}

.contact-appointment {
  background: #fffbeb;
  color: #d97706;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-top: 5px;
}

.call-action-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 120px;
}

.call-now-btn {
  background: linear-gradient(135deg, #4a6cf7, #3a5ce5);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
}

.call-now-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #3a5ce5, #2a4cd3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 108, 247, 0.3);
}

.call-now-btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  transform: none;
}

.schedule-call-btn {
  background: #f1f5f9;
  color: #475569;
  border: 2px solid #e2e8f0;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
}

.schedule-call-btn:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

/* No Results State */
.no-contacts {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
}

.no-contacts i {
  font-size: 3rem;
  color: #cbd5e1;
  margin-bottom: 15px;
}

/* Loading State */
.call-loading {
  text-align: center;
  padding: 40px 20px;
}

.call-loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #f1f5f9;
  border-top: 4px solid #4a6cf7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .call-interface-content {
    width: 95%;
    margin: 20px;
  }
  
  .call-contact-item {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .contact-info {
    text-align: center;
  }
  
  .call-action-section {
    flex-direction: row;
    justify-content: center;
    width: 100%;
  }
  
  .call-now-btn,
  .schedule-call-btn {
    width: auto;
    flex: 1;
  }
}

@media (max-width: 480px) {
  .call-interface-body {
    padding: 15px;
  }
  
  .call-filters {
    justify-content: center;
  }
  
  .call-filter-btn {
    flex: 1;
    text-align: center;
    min-width: 100px;
  }
}

/* Patient Info Panel */
.patient-info-panel {
    position: absolute;
    left: 0;
    top: 0;
    width: 250px;
    height: 100%;
    background: white;
    border-right: 1px solid #ddd;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.patient-info-panel.expanded {
    transform: translateX(0);
}

.patient-info-header {
    background: #4a6cf7;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.patient-info-content {
    padding: 15px;
}

.patient-detail {
    margin-bottom: 15px;
}

.patient-detail label {
    font-weight: 600;
    color: #666;
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.patient-detail span {
    color: #333;
    font-weight: 500;
}

/* Emergency Call Modal */
.emergency-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 400px;
    margin: 50px auto;
}

.emergency-header {
    background: #e74c3c;
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 12px 12px 0 0;
}

.emergency-header i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.emergency-body {
    padding: 20px;
    text-align: center;
}

.emergency-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.emergency-call-btn {
    background: #e74c3c !important;
    flex: 1;
}

/* Elapha Incoming Call Modal Styling */
#incoming-call-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

#incoming-call-modal .modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  max-width: 420px;
  margin: 6rem auto;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(74, 108, 247, 0.3);
  border: 1px solid #e8edff;
  position: relative;
  overflow: hidden;
}

#incoming-call-modal .modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4a6cf7, #3a5ce5);
}

#incoming-call-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

#incoming-call-modal h3 {
  color: #2d3748;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

#incoming-call-modal h3::before {
  content: '📞';
  font-size: 1.3rem;
}

#incoming-call-modal .close-modal {
  background: #f7f9fc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

#incoming-call-modal .close-modal:hover {
  background: #4a6cf7;
  color: white;
  border-color: #4a6cf7;
}

#incoming-call-text {
  color: #64748b;
  font-size: 1.1rem;
  text-align: center;
  margin: 20px 0 30px;
  line-height: 1.5;
  padding: 0 10px;
}

#incoming-call-modal .call-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

#decline-incoming-call {
  background: #fef2f2;
  color: #dc2626;
  border: 2px solid #fecaca;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#decline-incoming-call:hover {
  background: #dc2626;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

#accept-incoming-call {
  background: linear-gradient(135deg, #4a6cf7, #3a5ce5);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#accept-incoming-call:hover {
  background: linear-gradient(135deg, #3a5ce5, #2a4cd3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 108, 247, 0.4);
}

/* Elapha Waiting Modal Styling */
#waiting-doctor-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

#waiting-doctor-modal .modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  max-width: 420px;
  margin: 6rem auto;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(74, 108, 247, 0.3);
  border: 1px solid #e8edff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#waiting-doctor-modal .modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4a6cf7, #3a5ce5);
}

#waiting-title {
  color: #2d3748;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#waiting-title::before {
  content: '⏳';
  font-size: 1.3rem;
}

#waiting-message {
  color: #64748b;
  font-size: 1.1rem;
  margin: 0 0 30px 0;
  line-height: 1.5;
}

/* Loading animation for waiting modal */
.waiting-loader {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 3px solid #e2e8f0;
  border-top: 3px solid #4a6cf7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

#cancel-waiting-call {
  background: #f8fafc;
  color: #475569;
  border: 2px solid #e2e8f0;
  padding: 12px 30px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#cancel-waiting-call:hover {
  background: #475569;
  color: white;
  border-color: #475569;
  transform: translateY(-2px);
}

/* Animation keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Caller information styling */
.caller-info {
  text-align: center;
  margin: 20px 0;
}

.caller-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 15px;
  border: 3px solid #4a6cf7;
  object-fit: cover;
}

.caller-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 5px 0;
}

.caller-role {
  color: #64748b;
  font-size: 1rem;
  margin: 0;
}

/* Responsive design */
@media (max-width: 480px) {
  #incoming-call-modal .modal-content,
  #waiting-doctor-modal .modal-content {
    margin: 2rem auto;
    max-width: 90%;
    padding: 25px 20px;
  }
  
  #incoming-call-modal .call-actions {
    flex-direction: column;
  }
  
  #decline-incoming-call,
  #accept-incoming-call {
    width: 100%;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-call-modal-content {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    .video-frame.local-video {
        width: 120px;
        height: 90px;
        bottom: 10px;
        right: 10px;
    }
    
    .call-controls-panel {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .control-group {
        justify-content: center;
    }
    
    .control-btn {
        min-width: 60px;
        padding: 10px 15px;
    }
    
    .call-status-bar {
        flex-wrap: wrap;
        gap: 15px;
        padding: 10px;
    }
    
    .chat-panel {
        width: 100%;
    }
    
    .patient-info-panel {
        width: 100%;
    }
}
/* Other modals */
#waiting-doctor-modal,
#video-call-restricted-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.waiting-modal-content {
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.waiting-spinner {
    font-size: 3rem;
    color: var(--primary-yellow);
    margin-bottom: 20px;
}

/* Fix button text color */
.video-call-btn {
    border: 2px solid #00ff00 !important;
    border-radius: 8px;
    padding: 10px;
    margin: 4px;
    background-color: #f0fff0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333 !important; /* Force dark text */
}

.video-call-btn:hover {
    background-color: #00ff00;
    color: white !important;
    transform: translateY(-2px);
}

/* Fix simulator button text */
#simulate-incoming-call {
    color: #333 !important;
    border: 2px solid #007bff !important;
    background-color: #f0f8ff !important;
}

#simulate-incoming-call:hover {
    color: white !important;
    background-color: #007bff !important;
}
/* Reschedule Modal Styles */
#reschedule-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

#reschedule-modal .modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#reschedule-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

#reschedule-modal .modal-header h3 {
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

#reschedule-modal .modal-body {
    padding: 20px;
}

/* Ensure all modals have consistent close behavior */
.modal-header .close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
    padding: 5px;
}

.modal-header .close-modal:hover {
    color: #333;
}
/* === RESPONSIVE FIX PATCH FOR MOBILE === */
@media (max-width: 768px) {

    /* Fix header overflow */
    .header {
        grid-template-columns: 1fr 1fr;
        padding: 8px 10px;
    }

    #searching {
        display: none; /* Hide search bar on small screens */
    }

    .icon-bar ul {
        gap: 10px;
    }

    /* Ensure page content doesn't hide under fixed header */
    .main-content {
        padding-top: 120px !important;
    }

    /* Fix admin sidebar collapse */
    .sidebar {
        width: 70px;
        padding: 15px 5px;
    }

    .sidebar-menu a span,
    .sidebar .logo img {
        display: none;
    }

    .main-content.admin-dashboard {
        margin-left: 70px !important;
    }

    /* Fix top message: "You are on the free plan" overlapping */
    .welcome-message,
    .subscription-badge {
        font-size: 0.8rem;
        padding: 0.5rem;
        text-align: center;
    }

    /* Force all dashboard cards to full width */
    .columns-container {
        display: block !important;
    }

    .left-column,
    .center-column,
    .right-column {
        max-width: 100%;
        flex-basis: 100%;
    }

    /* Prevent overflow on wide icons/buttons */
    button, .action-btn, .primary-btn {
        font-size: 0.9rem;
        padding: 10px;
    }
}
/* Signout Modal Styles */
.signout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.signout-modal.active {
    opacity: 1;
    visibility: visible;
}

.signout-modal-content {
    background-color: var(--card-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.signout-modal-header {
    margin-bottom: 20px;
}

.signout-icon {
    font-size: 3rem;
    color: var(--primary-yellow);
    margin-bottom: 15px;
}

.signout-modal-header h3 {
    margin: 0 0 10px 0;
    color: var(--text-color-dark);
}

.signout-modal-header p {
    margin: 0;
    color: var(--text-color-medium);
    line-height: 1.5;
}

.signout-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
}

.signout-cancel-btn {
    background-color: var(--page-bg);
    color: var(--text-color-dark);
    border: 1px solid var(--border-light);
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
}

.signout-confirm-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
}

.signout-cancel-btn:hover {
    background-color: var(--border-light);
}

.signout-confirm-btn:hover {
    background-color: #c0392b;
}

/* Profile Picture Clickable Area */
.profile-picture-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-color-dark);
    text-decoration: none;
    transition: background-color 0.3s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
}

.profile-dropdown-item:hover {
    background-color: var(--page-bg);
}

.profile-dropdown-item.signout {
    color: #e74c3c;
    border-top: 1px solid var(--border-light);
    margin-top: 5px;
}

.profile-dropdown-item.signout:hover {
    background-color: #ffebee;
}
/* === MOBILE RESPONSIVENESS FIXES === */
@media (max-width: 768px) {
    /* Header fixes */
    .header {
        grid-template-columns: auto 1fr auto;
        padding: 8px 10px;
        gap: 10px;
    }

    .header .logoletter {
        height: 35px;
    }

    /* Search bar adjustments */
    #searching {
        display: none; /* Hide search on mobile or implement mobile search */
    }

    .mobile-search-toggle {
        display: block !important;
        background: none;
        border: none;
        color: var(--text-color-medium);
        font-size: 1.2rem;
        cursor: pointer;
    }

    /* Icon bar fixes */
    .icon-bar ul {
        gap: 8px;
    }

    .icon-bar li a {
        font-size: 0.8rem;
    }

    .icon-bar li a p {
        font-size: 0.7rem;
        margin-top: 2px;
    }

    /* Main content spacing */
    .main-content {
        padding-top: 70px !important;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Column layout for mobile */
    .columns-container {
        flex-direction: column;
        gap: 15px;
    }

    .left-column,
    .center-column,
    .right-column {
        flex-basis: 100%;
        max-width: 100%;
        width: 100%;
    }

    /* Card adjustments */
    .card {
        padding: 15px;
        margin-bottom: 15px;
    }

    /* Profile section fixes */
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .patient-avatar {
        width: 70px;
        height: 70px;
    }

    /* Welcome message adjustments */
    .welcome-message {
        padding: 1rem;
        text-align: center;
    }

    .welcome-message h2 {
        font-size: 1.3rem;
    }

    /* Button and action fixes */
    .consultation-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .consultation-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .doctor-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Form fixes */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Post and feed fixes */
    .post-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .post-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Social features mobile fixes */
    .feed-filter {
        flex-wrap: wrap;
        justify-content: center;
    }

    .feed-filter-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    /* Modal fixes for mobile */
    .modal-content,
    .comments-modal-content,
    .share-modal-content,
    .signout-modal-content {
        width: 95%;
        margin: 10px;
    }

    /* Video call modal mobile fixes */
    .video-call-modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .video-container {
        flex-direction: column;
    }

    .call-controls .call-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    /* Ensure text is readable on mobile */
    body {
        font-size: 14px;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1.1rem; }

    /* Fix any overflow issues */
    .card,
    .post-card,
    .doctor-card {
        max-width: 100%;
        overflow: hidden;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .icon-bar ul {
        gap: 5px;
    }

    .icon-bar li a {
        font-size: 0.7rem;
        padding: 5px;
    }

    .icon-bar li a p {
        display: none; /* Hide text on very small screens */
    }

    .main-content {
        padding-top: 60px !important;
    }

    .card {
        padding: 10px;
    }

    .signout-modal-actions {
        flex-direction: column;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .left-column,
    .right-column {
        flex-basis: 30%;
        max-width: 30%;
    }

    .center-column {
        flex-basis: 40%;
        max-width: 40%;
    }

    .header {
        padding: 8px 15px;
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .main-content {
        padding-top: 80px !important;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .video-call-modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .local-video {
        width: 120px;
        height: 90px;
        bottom: 100px;
        right: 10px;
    }
    
    .call-controls-panel {
        gap: 10px;
        padding: 10px;
    }
    
    .control-btn {
        width: 60px;
        height: 60px;
        font-size: 0.7rem;
    }
    
    .control-btn.end-call {
        width: 70px;
        height: 70px;
    }
    
    .chat-panel {
        width: 100%;
    }
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

.close-consultation {
    transition: all 0.3s ease;
}

.close-consultation:hover {
    color: #e74c3c !important;
    transform: scale(1.2);
}
/* Feed Filter Container */
.feed-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.feed-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
    flex: 1;
}

/* Find Doctors Action Button */
.find-doctors-action-btn {
    background: linear-gradient(135deg, #4a6cf7, #3a5ce5);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(74, 108, 247, 0.3);
}

.find-doctors-action-btn:hover {
    background: linear-gradient(135deg, #3a5ce5, #2a4cd3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.4);
}

.find-doctors-action-btn:active {
    transform: translateY(0);
}

.find-doctors-action-btn i {
    font-size: 0.9rem;
}

/* Feed Filter Buttons (updated) */
.feed-filter-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
}

.feed-filter-btn.active {
    background: #4a6cf7;
    color: white;
    border-color: #4a6cf7;
}

.feed-filter-btn:hover:not(.active) {
    background: #f8f9fa;
    border-color: #4a6cf7;
    color: #4a6cf7;
}

/* Doctor Search Section */
.doctor-search-section {
    margin-bottom: 20px;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.search-results-header h3 {
    margin: 0;
    color: var(--text-color-dark);
}

.close-search-btn {
    background: var(--page-bg);
    border: 1px solid var(--border-light);
    color: var(--text-color-medium);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.close-search-btn:hover {
    background: var(--border-light);
    color: var(--text-color-dark);
}

/* Doctor Search Cards */
.doctor-search-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.doctor-search-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #4a6cf7;
}

.doctor-search-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-yellow);
}

.doctor-search-info {
    flex: 1;
}

.doctor-search-name {
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-color-dark);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.doctor-search-specialty {
    color: var(--text-color-medium);
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.doctor-search-location {
    color: var(--text-color-medium);
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.doctor-search-rating {
    color: var(--primary-yellow);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.search-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-color-medium);
}

.search-loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #4a6cf7;
}

.search-empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-color-medium);
}

.search-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--border-medium);
}

.search-empty p {
    margin: 5px 0;
    font-size: 1rem;
}

/* Follow button in search results */
.doctor-search-card .follow-btn {
    margin-left: auto;
    white-space: nowrap;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .feed-filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .feed-filter {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .find-doctors-action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .doctor-search-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .doctor-search-info {
        width: 100%;
    }
    
    .doctor-search-card .follow-btn {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .feed-filter-btn {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .feed-filter {
        flex-direction: column;
    }
    
    .feed-filter-btn {
        width: 100%;
    }
    
    .doctor-search-avatar {
        width: 60px;
        height: 60px;
    }
}
/* Feed Filter Container */
.feed-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.feed-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
    flex: 1;
}

/* Find Doctors Action Button */
.find-doctors-action-btn {
    background: linear-gradient(135deg, #4a6cf7, #3a5ce5);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(74, 108, 247, 0.3);
}

.find-doctors-action-btn:hover {
    background: linear-gradient(135deg, #3a5ce5, #2a4cd3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.4);
}

.find-doctors-action-btn:active {
    transform: translateY(0);
}

.find-doctors-action-btn i {
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .feed-filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .feed-filter {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .find-doctors-action-btn {
        width: 100%;
        justify-content: center;
    }
}
/* ===== MOBILE NAVIGATION STYLES ===== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 1000;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    margin-bottom: 15px;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    text-decoration: none;
    color: #333;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background-color: #f5f5f5;
    color: #4a6cf7;
}

.mobile-nav-links i {
    width: 20px;
    text-align: center;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    padding: 5px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .icon-bar {
        display: none !important;
    }
    
    .header .wrapper {
        justify-content: space-between;
        padding: 0 15px;
    }
    
    /* Adjust search bar for mobile */
    #searching {
        flex: 1;
        margin: 0 15px;
        display: none; /* Hide by default, show when toggle clicked */
    }
    
    #searching.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 15px;
        border-top: 1px solid #eee;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    /* Mobile search toggle */
    .mobile-search-toggle {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.2rem;
        color: #333;
        cursor: pointer;
        padding: 10px;
    }
}

/* Alternative: Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-top: 1px solid #eee;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.mobile-bottom-nav-links {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-bottom-nav-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 0.7rem;
    padding: 5px;
    transition: color 0.3s ease;
}

.mobile-bottom-nav-links a.active {
    color: #4a6cf7;
}

.mobile-bottom-nav-links i {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

/* Use bottom navigation instead of sidebar on mobile */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
    
    .main-content {
        padding-bottom: 70px;
    }
}
/* Call Interface Modal Styles */
.call-interface-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.call-interface-modal.active {
    display: flex;
}

.call-interface-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.call-interface-header {
    padding: 24px 30px;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #4a6cf7, #3a5ce5);
    color: white;
}

.call-interface-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.call-interface-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.call-interface-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.call-interface-body {
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
}

/* Search Section */
.call-search-section {
    padding: 24px 30px;
    border-bottom: 1px solid #eef2f7;
    background: #f8fafc;
}

.call-search-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.call-search-input:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.call-filters {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.call-filter-btn {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #64748b;
}

.call-filter-btn:hover {
    border-color: #4a6cf7;
    color: #4a6cf7;
}

.call-filter-btn.active {
    background: #4a6cf7;
    border-color: #4a6cf7;
    color: white;
}

/* Contact List */
.call-contact-list {
    padding: 0;
}

.call-contact-item {
    padding: 20px 30px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.call-contact-item:hover {
    background: #f8fafc;
    transform: translateX(5px);
}

.call-contact-item:last-child {
    border-bottom: none;
}

.call-contact-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
    transition: all 0.3s ease;
}

.call-contact-item:hover .call-contact-avatar {
    border-color: #4a6cf7;
    transform: scale(1.05);
}

.call-contact-info {
    flex: 1;
}

.call-contact-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1e293b;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.call-contact-specialty {
    color: #64748b;
    margin: 0 0 6px 0;
    font-size: 0.9rem;
}

.call-contact-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.call-contact-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-online {
    color: #10b981;
}

.status-offline {
    color: #ef4444;
}

.status-away {
    color: #f59e0b;
}

.call-contact-action {
    background: #4a6cf7;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.call-contact-action:hover {
    background: #3a5ce5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
}

.call-contact-action:active {
    transform: translateY(0);
}

/* Loading States */
.call-loading {
    padding: 60px 30px;
    text-align: center;
    color: #64748b;
}

.call-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #4a6cf7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

.call-empty-state {
    padding: 60px 30px;
    text-align: center;
    color: #64748b;
}

.call-empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #cbd5e1;
}

/* Badges */
.online-badge {
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

.appointment-badge {
    background: #f59e0b;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

.following-badge {
    background: #4a6cf7;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .call-interface-content {
        width: 95%;
        margin: 20px;
    }
    
    .call-interface-header {
        padding: 20px;
    }
    
    .call-search-section {
        padding: 20px;
    }
    
    .call-contact-item {
        padding: 16px 20px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .call-contact-meta {
        justify-content: center;
    }
    
    .call-filters {
        justify-content: center;
    }
    
    .call-filter-btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
}

/* Video Call Modal Styles (for when call starts) */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    z-index: 10001;
    display: none;
}

.video-modal.active {
    display: block;
}

.video-modal-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.remote-container {
    width: 100%;
    height: 100%;
    background: #000;
    position: relative;
}

.video-controls {
    position: absolute;
    left: 0;
    right: 0;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.video-controls.top {
    top: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
}

.video-controls.bottom {
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.btn-icon {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.btn-danger {
    background: #ef4444;
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.btn-danger:hover {
    background: #dc2626;
    transform: scale(1.05);
}
/* post card spacing and layout */
.post-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 18px; /* spacing between posts */
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.post-header { display:flex; gap:12px; align-items:flex-start; margin-bottom:10px; }
.post-header .ln-avatar { width:48px; height:48px; border-radius:50%; object-fit:cover; }
.post-meta .post-author { font-weight:700; }
.post-content { margin-bottom:10px; color:#222; line-height:1.45; }
.post-image { width:100%; height:auto; border-radius:8px; margin-top:8px; }
.post-actions { display:flex; gap:12px; margin-top:8px; align-items:center; }
.post-comments-area { margin-top:12px; display:block; }
.post-comment { display:flex; gap:10px; margin-bottom:10px; align-items:flex-start; }
.post-comment .comment-avatar { width:36px; height:36px; border-radius:50%; object-fit:cover; }
.post-comment .comment-body { flex:1; }
.post-comment-form { display:flex; gap:8px; margin-top:8px; }
.comment-input { flex:1; padding:8px 10px; border-radius:8px; border:1px solid #ddd; }
.comment-submit { padding:8px 12px; border-radius:8px; background:#4a6cf7; color:#fff; border:none; cursor:pointer; }
.view-all-comments { margin-top:8px; font-size:0.9rem; color:#666; }
/* Waiting Modal Styles */
#waiting-doctor-modal .modal-content {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#waiting-title {
    color: #4a6cf7;
    margin-bottom: 10px;
}

#waiting-message {
    color: #666;
    margin-bottom: 20px;
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
/* call-modal.css */

#incoming-call-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}

#incoming-call-modal.active {
    visibility: visible;
    opacity: 1;
}

.call-box {
    background: white;
    padding: 25px;
    border-radius: 15px;
    width: 320px;
    text-align: center;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.call-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
}

.call-btn {
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

.call-accept {
    background: #2ecc71;
    color: white;
}

.call-reject {
    background: #e74c3c;
    color: white;
}
/* /css/call-interface.css - minimal modal styles */
.call-interface-modal { position: fixed; inset: 0; display:flex; align-items:center; justify-content:center; background: rgba(0,0,0,0.45); z-index:9999; }
.call-interface-content { width: 920px; max-width:95%; background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 10px 40px rgba(0,0,0,0.25); }
.call-interface-header { display:flex; justify-content:space-between; align-items:center; padding:14px 18px; border-bottom:1px solid #eee; }
.call-interface-body { padding:18px; display:flex; gap:18px; flex-direction:column; }
.call-search-section { display:flex; gap:10px; align-items:center; }
.call-search-input { flex:1; padding:10px 12px; border:1px solid #ddd; border-radius:8px; }
.call-filters { display:flex; gap:8px; }
.call-filter-btn { padding:8px 12px; border:1px solid #ddd; border-radius:8px; background:#fff; cursor:pointer; }
.call-filter-btn.active { background:#4a6cf7; color:#fff; border-color:transparent; }
.call-contact-list { max-height:420px; overflow-y:auto; display:grid; gap:8px; grid-template-columns:1fr; padding-top:8px; }
.call-contact-card { display:flex; gap:12px; align-items:center; padding:10px; border-radius:8px; border:1px solid #f1f1f1; }
.call-avatar { width:56px; height:56px; border-radius:8px; object-fit:cover; }
.call-start-btn { padding:8px 12px; background:#4a6cf7; color:#fff; border:none; border-radius:8px; cursor:pointer; }
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.error-toast {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}
/* Empty states */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #666;
}

.empty-state i {
    margin-bottom: 1rem;
    color: #ddd;
    display: block;
}

.empty-state h4 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.1rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.5;
}

.empty-state .primary-btn,
.empty-state .secondary-btn {
    margin-top: 1rem;
}

/* Messages */
.info-message, .error-message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-message {
    background: #e8f4ff;
    border-left: 4px solid #2196f3;
}

.error-message {
    background: #ffebee;
    border-left: 4px solid #f44336;
}

.info-message i {
    color: #2196f3;
}

.error-message i {
    color: #f44336;
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-form .form-group {
    margin-bottom: 1.5rem;
}

.modal-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: #007bff;
}

.modal-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-buttons button {
    flex: 1;
}

/* Subscription badge variants */
.subscription-badge.explorer {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.subscription-badge.basic {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.subscription-badge.premium {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.subscription-badge.elite {
    background: linear-gradient(135deg, #6f42c1, #4a2a8a);
    color: white;
}

/* Status badges */
.status-active {
    color: #28a745;
    font-weight: 600;
}

.status-inactive {
    color: #dc3545;
    font-weight: 600;
}

.status-pending {
    color: #ffc107;
    font-weight: 600;
}

/* History categories */
.history-category {
    margin-bottom: 1.5rem;
}

.history-category:last-child {
    margin-bottom: 0;
}

.history-category h4 {
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    text-transform: capitalize;
}

/* Loading spinner */
.fa-spinner.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Empty states */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #666;
}

.empty-state i {
    margin-bottom: 1rem;
    color: #ddd;
    display: block;
}

.empty-state h4 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.1rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.5;
}

.empty-state .primary-btn,
.empty-state .secondary-btn {
    margin-top: 1rem;
}

/* Messages */
.info-message, .error-message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-message {
    background: #e8f4ff;
    border-left: 4px solid #2196f3;
}

.error-message {
    background: #ffebee;
    border-left: 4px solid #f44336;
}

.info-message i {
    color: #2196f3;
}

.error-message i {
    color: #f44336;
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-form .form-group {
    margin-bottom: 1.5rem;
}

.modal-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: #007bff;
}

.modal-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-buttons button {
    flex: 1;
}

/* Subscription badge variants */
.subscription-badge.explorer {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.subscription-badge.basic {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.subscription-badge.premium {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.subscription-badge.elite {
    background: linear-gradient(135deg, #6f42c1, #4a2a8a);
    color: white;
}

/* Status badges */
.status-active {
    color: #28a745;
    font-weight: 600;
}

.status-inactive {
    color: #dc3545;
    font-weight: 600;
}

.status-pending {
    color: #ffc107;
    font-weight: 600;
}

/* History categories */
.history-category {
    margin-bottom: 1.5rem;
}

.history-category:last-child {
    margin-bottom: 0;
}

.history-category h4 {
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    text-transform: capitalize;
}

/* Loading spinner */
.fa-spinner.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Empty states */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #666;
}

.empty-state i {
    margin-bottom: 1rem;
    color: #ddd;
    display: block;
}

.empty-state h4 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.1rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.5;
}

.empty-state .primary-btn,
.empty-state .secondary-btn {
    margin-top: 1rem;
}

/* Messages */
.info-message, .error-message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-message {
    background: #e8f4ff;
    border-left: 4px solid #2196f3;
}

.error-message {
    background: #ffebee;
    border-left: 4px solid #f44336;
}

.info-message i {
    color: #2196f3;
}

.error-message i {
    color: #f44336;
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-form .form-group {
    margin-bottom: 1.5rem;
}

.modal-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: #007bff;
}

.modal-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-buttons button {
    flex: 1;
}

/* Subscription badge variants */
.subscription-badge.explorer {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.subscription-badge.basic {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.subscription-badge.premium {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.subscription-badge.elite {
    background: linear-gradient(135deg, #6f42c1, #4a2a8a);
    color: white;
}

/* Status badges */
.status-active {
    color: #28a745;
    font-weight: 600;
}

.status-inactive {
    color: #dc3545;
    font-weight: 600;
}

.status-pending {
    color: #ffc107;
    font-weight: 600;
}

/* History categories */
.history-category {
    margin-bottom: 1.5rem;
}

.history-category:last-child {
    margin-bottom: 0;
}

.history-category h4 {
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    text-transform: capitalize;
}

/* Loading spinner */
.fa-spinner.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Subscription Modal Styles - Update existing styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-radius: 20px 20px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.modal-header .close-modal {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-header .close-modal:hover {
    background: #f8f9fa;
    color: #333;
}

.modal-body {
    padding: 30px;
}

.subscription-modal-content .modal-body {
    padding: 0;
}

.subscription-modal-content .modal-body > *:not(:first-child) {
    padding: 0 30px;
}

.subscription-modal-content .modal-body > *:last-child {
    padding-bottom: 30px;
}

/* Ensure PayFast buttons work correctly */
.payfast-form {
    display: inline-block;
}

.payfast-form input[type="image"] {
    cursor: pointer;
    border: none;
    outline: none;
}

.payfast-form input[type="image"]:hover {
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .subscription-modal-content .modal-body > *:not(:first-child) {
        padding: 0 20px;
    }
    
    .subscription-modal-content .modal-body > *:last-child {
        padding-bottom: 20px;
    }
}
/* Patient Mobile Navigation Styles */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
    background: #4a6cf7;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 1000;
    transition: left 0.3s ease;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.mobile-sidebar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.mobile-sidebar-profile {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.mobile-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-sidebar-menu li {
    margin-bottom: 5px;
}

.mobile-sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}

.mobile-sidebar-menu a:hover {
    background: #f0f4ff;
}

.mobile-sidebar-menu a i {
    width: 20px;
    text-align: center;
}

.mobile-sidebar-upgrade {
    background: linear-gradient(135deg, #4a6cf7, #3a5ce5);
    border-radius: 10px;
    padding: 15px;
    color: white;
    margin-top: 20px;
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 998;
    border-top: 1px solid #eee;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.mobile-bottom-nav-links {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-bottom-nav-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 0.75rem;
}

.mobile-bottom-nav-links a.active {
    color: #4a6cf7;
}

.mobile-bottom-nav-links i {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Mobile search toggle */
#mobile-search-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-bottom-nav {
        display: block;
    }
    
    #mobile-search-toggle {
        display: flex;
    }
    
    /* Hide desktop search in mobile */
    #searching {
        display: none !important;
    }
    
    /* Adjust main content padding for mobile */
    .main-content {
        padding-bottom: 70px; /* Space for bottom nav */
    }
    
    .columns-container {
        flex-direction: column;
    }
    
    .left-column, .center-column, .right-column {
        width: 100% !important;
        margin-bottom: 15px;
    }
}
/* Modal Styles (already in HTML for now) */

/* Card Layout Improvements */
.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Report Item Styles */
.report-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    margin-bottom: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.report-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.report-icon {
    font-size: 24px;
    color: #2563eb;
    margin-right: 20px;
    min-width: 40px;
}

.report-details {
    flex: 1;
    min-width: 0;
}

.report-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.report-header h4 {
    margin: 0;
    font-size: 18px;
    color: #1f2937;
}

.urgent-badge {
    background-color: #fee2e2;
    color: #dc2626;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
    color: #6b7280;
    font-size: 14px;
}

.report-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.report-meta i {
    font-size: 12px;
}

.description {
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 0;
}

.report-actions {
    display: flex;
    gap: 8px;
    margin-left: 15px;
}

.report-actions button {
    padding: 8px 12px;
    white-space: nowrap;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.loading-state .loading-spinner {
    margin-bottom: 15px;
}

/* Activity List */
.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item i {
    color: #2563eb;
    margin-right: 12px;
    margin-top: 2px;
    font-size: 14px;
}

.activity-info p {
    margin: 0 0 4px 0;
    font-size: 14px;
}

.activity-info span {
    font-size: 12px;
    color: #9ca3af;
}

.no-activity {
    color: #9ca3af;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

/* Category Filters */
.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-btn {
    padding: 8px 16px;
    background-color: #f3f4f6;
    border: none;
    border-radius: 20px;
    color: #4b5563;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.category-btn:hover {
    background-color: #e5e7eb;
}

.category-btn.active {
    background-color: #2563eb;
    color: white;
}

/* Health Stats */
.health-stats {
    margin-bottom: 20px;
}

.health-stats p {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
}

.health-stats strong {
    color: #1f2937;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #334155;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.action-btn:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
}

/* Buttons */
.primary-btn, .secondary-btn, .view-record-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.primary-btn {
    background-color: #2563eb;
    color: white;
    border: none;
}

.primary-btn:hover {
    background-color: #1d4ed8;
}

.secondary-btn {
    background-color: white;
    color: #2563eb;
    border: 1px solid #d1d5db;
}

.secondary-btn:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.view-record-btn {
    width: 100%;
    background-color: transparent;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.view-record-btn:hover {
    background-color: #eff6ff;
}

/* Responsive */
@media (max-width: 768px) {
    .report-item {
        flex-direction: column;
    }
    
    .report-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .report-actions {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
        justify-content: flex-end;
    }
    
    .report-meta {
        flex-direction: column;
        gap: 5px;
    }
}
/* Add these styles to your existing styles2.css file */

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #333;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    min-width: 300px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background-color: #28a745;
}

.notification.error {
    background-color: #dc3545;
}

.notification.info {
    background-color: #17a2b8;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 20px;
    font-size: 16px;
    color: #333;
}

/* Subscription badges */
.subscription-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.subscription-badge.explorer {
    background-color: #6c757d;
    color: white;
}

.subscription-badge.basic {
    background-color: #007bff;
    color: white;
}

.subscription-badge.standard {
    background-color: #28a745;
    color: white;
}

.subscription-badge.premium {
    background-color: #ffc107;
    color: #212529;
}

.subscription-badge.trial {
    background-color: #17a2b8;
    color: white;
}

/* Settings sections */
.settings-section {
    display: block;
}

/* Confirm dialog */
.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirm-dialog.show {
    opacity: 1;
}

.confirm-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.confirm-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Toggle switch improvements */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

.toggle-switch input:checked + .slider {
    background-color: #007bff;
}

.toggle-switch input:focus + .slider {
    box-shadow: 0 0 1px #007bff;
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(24px);
}

.toggle-switch .slider.round {
    border-radius: 34px;
}

.toggle-switch .slider.round:before {
    border-radius: 50%;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
    
    .notification {
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

/* Button improvements */
.primary-btn, .secondary-btn, .danger-btn {
    transition: all 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.danger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.full-width-btn {
    width: 100%;
    justify-content: center;
}
/* Add to existing styles2.css */

/* Tab Navigation Fixes */
.settings-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    margin: 5px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    background: #f8f9fa;
}

.settings-nav-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.settings-nav-item.active {
    background: #007bff;
    color: white;
    font-weight: 600;
}

.settings-nav-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Toggle Switch Fixes */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

.toggle-switch input:checked + .slider {
    background-color: #28a745;
}

.toggle-switch input:focus + .slider {
    box-shadow: 0 0 1px #28a745;
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(30px);
}

.toggle-switch .slider.round {
    border-radius: 34px;
}

.toggle-switch .slider.round:before {
    border-radius: 50%;
}

/* Subscription Badge Styles */
.subscription-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.subscription-badge.explorer {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.subscription-badge.basic {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.subscription-badge.standard {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
}

.subscription-badge.premium {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.subscription-badge.trial {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

/* Button Improvements */
.primary-btn, .secondary-btn, .danger-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
}

.primary-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.secondary-btn {
    background: #6c757d;
    color: white;
}

.secondary-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.danger-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.danger-btn:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Settings Section Transitions */
.settings-section {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Navigation Fixes */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.mobile-bottom-nav.active {
    display: block;
}

.mobile-bottom-nav-links {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    margin: 0;
    list-style: none;
}

.mobile-bottom-nav-links li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 12px;
    padding: 5px;
}

.mobile-bottom-nav-links li a.active {
    color: #007bff;
}

.mobile-bottom-nav-links li i {
    font-size: 20px;
    margin-bottom: 5px;
}

.mobile-menu-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    z-index: 1001;
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .icon-bar {
        display: none;
    }
    
    .columns-container {
        flex-direction: column;
    }
    
    .left-column, .center-column, .right-column {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .settings-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .settings-nav-item {
        flex: 1;
        min-width: 120px;
        justify-content: center;
        padding: 10px;
    }
}

/* Dark Theme Support */
.dark-theme {
    background-color: #1a1a1a;
    color: #ffffff;
}

.dark-theme .card {
    background-color: #2d2d2d;
    border-color: #404040;
}

.dark-theme .settings-nav-item {
    background: #404040;
    color: #ffffff;
}

.dark-theme .settings-nav-item.active {
    background: #007bff;
}

.dark-theme input,
.dark-theme select,
.dark-theme textarea {
    background-color: #404040;
    color: #ffffff;
    border-color: #555;
}

/* Loading States */
.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.btn-loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Accessibility Improvements */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .mobile-menu-toggle,
    .mobile-bottom-nav,
    .footer,
    .notification {
        display: none !important;
    }
}
/* Video Call System Styles */
.call-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

.call-tab-btn {
    flex: 1;
    padding: 12px;
    background: #f8f9fa;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.call-tab-btn.active {
    background: #4a6cf7;
    color: white;
}

.call-tab-content {
    display: none;
}

.call-tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Appointment Cards */
.appointments-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.appointment-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.appointment-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #4a6cf7;
}

.appointment-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.appointment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.appointment-info h5 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.appointment-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: #28a745;
    color: white;
}

.badge-info {
    background: #17a2b8;
    color: white;
}

.badge-secondary {
    background: #6c757d;
    color: white;
}

.badge-light {
    background: #f8f9fa;
    color: #212529;
}

.appointment-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
}

.detail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.detail:last-child {
    margin-bottom: 0;
}

.detail i {
    width: 20px;
    color: #6c757d;
}

.call-status-active {
    color: #28a745;
    font-weight: 600;
}

.call-status-can_start {
    color: #17a2b8;
    font-weight: 600;
}

.call-status-scheduled {
    color: #6c757d;
    font-weight: 600;
}

.call-status-missed {
    color: #dc3545;
    font-weight: 600;
}

.appointment-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.appointment-actions .btn {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

/* Doctor Cards */
.doctors-list {
    max-height: 300px;
    overflow-y: auto;
}

.doctor-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.doctor-card:hover {
    background: #f8f9fa;
}

.doctor-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.doctor-info {
    flex: 1;
}

.doctor-info h5 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.doctor-info p {
    margin: 0 0 5px 0;
    color: #6c757d;
    font-size: 0.85rem;
}

.status {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status.online {
    color: #28a745;
}

.status.offline {
    color: #6c757d;
}

/* Emergency Call */
.emergency-call-info {
    text-align: center;
    padding: 30px 20px;
}

.emergency-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 20px;
}

.emergency-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.feature {
    text-align: center;
}

.feature i {
    font-size: 1.5rem;
    color: #dc3545;
    margin-bottom: 10px;
    display: block;
}

.feature span {
    font-size: 0.9rem;
    color: #6c757d;
}

#start-emergency-call {
    padding: 15px 30px;
    font-size: 1.1rem;
    margin: 20px 0;
}

.emergency-note {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state h5 {
    margin-bottom: 10px;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 10000;
    animation: slideInRight 0.3s;
}

.toast-success {
    border-left: 4px solid #28a745;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-info {
    border-left: 4px solid #17a2b8;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-content i {
    font-size: 1.2rem;
}

.toast-success .toast-content i {
    color: #28a745;
}

.toast-error .toast-content i {
    color: #dc3545;
}

.toast-info .toast-content i {
    color: #17a2b8;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
/* Prescription Components */
.prescription-status-container {
    margin-top: 10px;
}

.prescription-preview-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.prescription-preview-item:hover {
    background-color: #f8f9fa;
}

.prescription-preview-item:last-child {
    border-bottom: none;
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary {
    background: #4a6cf7;
    color: white;
}

.badge.has-items {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Button links */
.btn-link {
    background: none;
    border: none;
    color: #4a6cf7;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Urgent text */
.urgent-text {
    color: #dc3545;
    font-weight: 600;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 30px 20px;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 15px;
}

.empty-state h3 {
    margin: 10px 0;
    color: #333;
}

/* Action buttons */
.action-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    text-decoration: none;
}

.action-btn-primary {
    background: #4a6cf7;
    color: white;
}

.action-btn-primary:hover {
    background: #3a5ce5;
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.action-btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.action-btn-secondary:hover {
    background: #e9ecef;
}
/* Add to styles2.css */
#searching {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

#search, #main-site-search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
}

#search:focus, #main-site-search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
/* Add to your styles2.css or existing CSS */

/* Fix icon bar alignment */
.icon-bar ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 0;
}

.icon-bar ul li {
    margin: 0;
    padding: 0;
}

.icon-bar ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    padding: 8px 12px;
    transition: all 0.3s ease;
    position: relative;
    min-width: 70px;
    height: 100%;
}

.icon-bar ul li a:hover {
    color: #4a6cf7;
    background: #f8f9fa;
    border-radius: 6px;
}

.icon-bar ul li a i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.icon-bar ul li a p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1;
}

/* Ensure all navigation items are on the same level */
.icon-bar {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Make sure the header wrapper can contain dropdowns */
.header .wrapper {
    position: relative;
}

/* Mobile notification alignment */
@media (max-width: 768px) {
    .mobile-bottom-nav-links {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    
    .mobile-bottom-nav-links li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    
    .mobile-bottom-nav-links li a i {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }
}
/* Mobile Navigation Styles */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 20px;
    cursor: pointer;
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.mobile-bottom-nav-links {
    list-style: none;
    display: flex;
    justify-content: space-around;
    margin: 0;
    padding: 0;
}

.mobile-bottom-nav-links li {
    flex: 1;
    text-align: center;
}

.mobile-bottom-nav-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 5px;
    color: #666;
    text-decoration: none;
    font-size: 12px;
}

.mobile-bottom-nav-links a i {
    font-size: 18px;
    margin-bottom: 4px;
}

.mobile-bottom-nav-links a.active {
    color: #007bff;
}

/* Show/hide mobile elements based on screen size */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-bottom-nav {
        display: block;
    }
    
    /* Hide desktop navigation on mobile */
    .headerfixed {
        display: none;
    }
    
    /* Adjust main content for mobile */
    .main-content {
        padding-bottom: 70px; /* Space for bottom nav */
    }
    
    /* Make columns stack on mobile */
    .columns-container {
        flex-direction: column;
    }
    
    .left-column,
    .center-column,
    .right-column {
        width: 100%;
        margin-bottom: 15px;
    }
    
    /* Adjust footer for mobile */
    .footer {
        margin-bottom: 70px; /* Space for bottom nav */
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-links li {
        margin: 5px 10px;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle,
    .mobile-bottom-nav {
        display: none !important;
    }
    
    .headerfixed {
        display: block;
    }
}
/* Mobile Navigation Menu Overlay */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: white;
    z-index: 1002;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-nav-menu.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #007bff;
    color: white;
}

.mobile-nav-header h3 {
    margin: 0;
    font-size: 20px;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    border-bottom: 1px solid #eee;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.mobile-nav-links a:hover {
    background-color: #f5f5f5;
}

.mobile-nav-links a i {
    width: 30px;
    font-size: 18px;
    color: #666;
}

.mobile-nav-links a.active {
    color: #007bff;
    background-color: #f0f7ff;
}

.mobile-nav-links a.active i {
    color: #007bff;
}

/* Overlay background when menu is open */
.mobile-nav-menu.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: -1;
}

/* Mobile specific badge styles */
@media (max-width: 768px) {
    .notification-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #dc3545;
        color: white;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        font-size: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
    }
    
    .mobile-nav-links .notification-link {
        position: relative;
    }
    
    .mobile-bottom-nav-links .notification-link {
        position: relative;
        padding-right: 20px;
    }
}
.legal-page {
  background: #f8f9fa;
  font-family: 'Inter', sans-serif;
}

.legal-container {
  max-width: 900px;
  margin: 60px auto;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.legal-container h1 {
  margin-bottom: 20px;
}

.legal-container h2 {
  margin-top: 30px;
}

.warning {
  color: #dc3545;
  font-weight: 600;
}

.small-text {
  font-size: 0.85rem;
  color: #666;
}
/* ====== BASE STYLES & RESET ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #212121;
    line-height: 1.6;
    min-height: 100vh;
}

.legal-page {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    min-height: 100vh;
}

/* ====== NAVIGATION HEADER ====== */
.page-header {
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #ffd43b;
    color: #212121;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.back-button:hover {
    background-color: #ffc107;
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(255, 212, 59, 0.3);
}

.nav-logo .logo {
    height: 40px;
    max-width: 150px;
    object-fit: contain;
}

/* ====== MAIN CONTENT CONTAINER ====== */
.legal-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.legal-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #212121;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legal-container h1 i {
    color: #ffd43b;
}

.legal-container h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: #424242;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legal-container h2 i {
    color: #ffd43b;
}

.legal-container h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem;
    color: #424242;
}

.lead {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #555;
}

/* ====== CONTENT CARDS ====== */
.content-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #ffd43b;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.highlight-card {
    border-left-color: #ffc107;
    background-color: #fffdf6;
}

.warning-card {
    border-left-color: #ff9800;
    background-color: #fff8e1;
}

/* ====== FEATURE LISTS ====== */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.feature-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    color: #ffd43b;
    margin-top: 0.25rem;
    min-width: 20px;
}

/* ====== ACTION BUTTONS ====== */
.action-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #ffd43b;
    color: #212121;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.action-button:hover {
    background-color: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 212, 59, 0.25);
}

.action-button.secondary {
    background-color: #f5f5f5;
    color: #424242;
    border: 1px solid #e0e0e0;
}

.action-button.secondary:hover {
    background-color: #eeeeee;
}

/* ====== HELP PAGE SPECIFIC STYLES ====== */
.help-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.help-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #ffd43b;
}

.help-icon {
    font-size: 2.5rem;
    color: #ffd43b;
    margin-bottom: 1.25rem;
}

.support-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.support-contact {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #f5f5f5;
    color: #424242;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.support-link:hover {
    background-color: #ffd43b;
    color: #212121;
}

/* ====== QUICK LINKS ====== */
.quick-links {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #f5f5f5;
    color: #424242;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.quick-link:hover {
    background-color: #ffd43b;
    color: #212121;
    transform: translateX(5px);
}

/* ====== EMERGENCY CONTACT ====== */
.emergency-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #fff3cd;
    color: #856404;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    font-weight: 600;
    border: 1px solid #ffeaa7;
}

/* ====== SECURITY BADGES ====== */
.security-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f5f5f5;
    color: #424242;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #e0e0e0;
}

/* ====== NOTICE BOX ====== */
.notice-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background-color: #fffdf6;
    border-left: 4px solid #ffd43b;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2.5rem;
}

.notice-box i {
    color: #ffd43b;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

/* ====== POLICY DATE ====== */
.policy-date {
    color: #757575;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    font-style: italic;
}

/* ====== SMALL TEXT ====== */
.small-text {
    font-size: 0.9rem;
    color: #757575;
    margin-top: 2rem;
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .back-button span {
        display: none;
    }
    
    .back-button {
        padding: 0.75rem;
    }
    
    .legal-container {
        padding: 2rem 1.5rem;
    }
    
    .legal-container h1 {
        font-size: 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .help-categories {
        grid-template-columns: 1fr;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .support-contact {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .legal-container h1 {
        font-size: 1.75rem;
    }
    
    .link-grid {
        grid-template-columns: 1fr;
    }
    
    .action-button {
        width: 100%;
        justify-content: center;
    }
}
/* Add this to your styles2.css or in a <style> tag in the head */

/* ============ RESPONSIVE LAYOUT FOR MOBILE ============ */

/* Desktop Layout (default) */
.columns-container {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.left-column {
    flex: 0 0 280px;
    width: 280px;
}

.center-column {
    flex: 1;
    min-width: 0; /* Prevents overflow */
}

.right-column {
    flex: 0 0 320px;
    width: 320px;
}

/* Mobile Layout */
@media (max-width: 992px) {
    .columns-container {
        padding: 15px;
        gap: 15px;
    }
    
    .left-column {
        flex: 0 0 240px;
        width: 240px;
    }
    
    .right-column {
        flex: 0 0 280px;
        width: 280px;
    }
}

/* Mobile Layout - Stack columns */
@media (max-width: 768px) {
    .columns-container {
        display: block;
        padding: 10px;
        position: relative;
        overflow-x: hidden;
    }
    
    /* Left column becomes part of main scrollable area on mobile */
    .left-column {
        width: 100%;
        flex: none;
        margin-bottom: 20px;
    }
    
    /* Center column is the main content area */
    .center-column {
        width: 100%;
        flex: none;
    }
    
    /* Right column becomes a sliding drawer on mobile */
    .right-column {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        z-index: 10001;
        overflow-y: auto;
        padding: 20px;
        transition: right 0.3s ease-in-out;
        display: block !important;
        flex: none;
    }
    
    /* When right column is active/open */
    .right-column.active {
        right: 0;
    }
    
    /* Overlay when right column is open */
    .right-column-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10000;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .right-column-overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* Floating action button for mobile */
    .mobile-drawer-toggle {
        position: fixed;
        bottom: 80px;
        right: 20px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: #4a6cf7;
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(74, 108, 247, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 9999;
        transition: all 0.3s ease;
    }
    
    .mobile-drawer-toggle:hover {
        transform: scale(1.05);
        background: #3a5ce5;
    }
    
    /* Drawer header with close button */
    .right-column-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }
    
    .right-column-header h2 {
        margin: 0;
        font-size: 1.3rem;
        color: #333;
    }
    
    .close-drawer-btn {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #666;
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background 0.2s;
    }
    
    .close-drawer-btn:hover {
        background: #f0f0f0;
    }
    
    /* Hide original right column on mobile, we'll use drawer version */
    .right-column:not(.active) {
        display: none;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .right-column {
        width: 90%;
        max-width: none;
    }
    
    .mobile-drawer-toggle {
        bottom: 70px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* ============ IMPROVED MOBILE BOTTOM NAVIGATION ============ */
@media (max-width: 768px) {
    /* Adjust bottom nav to accommodate drawer button */
    .mobile-bottom-nav {
        z-index: 10002;
    }
    
    /* Add padding to main content to avoid overlap with bottom nav */
    .main-content {
        padding-bottom: 70px;
    }
}

/* ============ ENHANCED SCROLLING FOR MOBILE ============ */
@media (max-width: 768px) {
    /* Make only main content area scrollable */
    body {
        overflow: hidden;
        height: 100vh;
        position: fixed;
        width: 100%;
    }
    
    .main-content {
        height: calc(100vh - 60px); /* Adjust based on your header height */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 70px;
    }
    
    /* Header fixed at top */
    .headerfixed {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
    }
    
    /* Adjust main content to start below fixed header */
    .main-content {
        margin-top: 60px; /* Match header height */
    }
}