﻿/* ==========================================================================
   MerakiMedSpa - Modern CSS Styles
   ========================================================================== */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

/* Button Styles */
.btn > i {
    margin-right: 0px !important;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

/* Layout Styles */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

.page-container {
    width: 99% !important;
    max-width: 1400px;
    margin: 0 auto;
    
}

    .page-container .main-content {
        width: 99% !important;
    }

/* Utility Classes */
.goldFont {
    color: #f39c12 !important;
    font-weight: 600;
}

.pad10 {
    padding: 10px !important;
}



.clickable,
.pointer,
.hoverGridKey {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

    .clickable:hover,
    .pointer:hover,
    .hoverGridKey:hover {
        opacity: 0.8;
    }

/* Status Indicators */
.online {
    color: #27ae60;
    font-weight: 600;
}

.offline {
    color: #e74c3c;
    font-weight: 600;
}

/* Form Styles */
input:required,
input[data-val-required] {
    border-left: 4px solid #e74c3c !important;
    transition: border-color 0.3s ease;
}

    input:required:valid,
    input[data-val-required]:valid {
        border-left: 4px solid #27ae60 !important;
    }

.dl-horizontal dt {
    white-space: normal;
}

/* Modal Styles */
.modal-admin {
    width: 750px;
    margin-left: -375px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-dialog {
    position: relative;
    display: table;
    overflow-y: auto;
    overflow-x: auto;
    width: auto;
    min-width: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}



.modal-title {
    color: #f39c12;
    font-weight: 600;
}

/* Chat Styles */
.chatNames {
    color: white !important;
    font-size: medium !important;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.dataList {
    padding-top: 10px;
}

/* Image Hover Effects */
.hover_img a {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

    .hover_img a:hover {
        transform: scale(1.05);
    }

    .hover_img a span {
        position: absolute;
        display: none;
        z-index: 99;
        background: rgba(0, 0, 0, 0.9);
        color: white;
        padding: 10px;
        border-radius: 6px;
        font-size: 14px;
        white-space: nowrap;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .hover_img a:hover span {
        display: block;
        animation: fadeIn 0.3s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Styles - Fixed text visibility */

.dynamic-card {
    min-height: 5px !important;
}
.card {
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    min-height: 400px;
    transition: all 0.3s ease;
    overflow: hidden;
    color: #2c3e50; /* Ensure dark text by default */
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    }

    .card .card-heading {
        padding: 20px 25px;
        margin: 0;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 16px 16px 0 0;
        color: #2c3e50; /* Dark text for headings */
    }

        .card .card-heading.simple {
            font-size: 22px;
            font-weight: 600;
            color: #2c3e50; /* Ensure dark text */
            border-bottom: 2px solid #f39c12;
            background: transparent;
        }

        .card .card-heading.image .card-heading-header h3 {
            margin: 0;
            font-size: 16px;
            line-height: 18px;
            color: #2c3e50; /* Dark text for names */
            font-weight: 600;
        }

        .card .card-heading.image .card-heading-header span {
            font-size: 13px;
            color: #7f8c8d; /* Muted but visible text */
            font-weight: 500;
        }

    .card .card-body {
        padding: 25px;
        margin-top: 0;
        color: #2c3e50; /* Ensure all body text is dark */
    }

        /* Price and important text styling */
        .card .card-body .price,
        .card .card-body .amount,
        .card .card-body .cost,
        .card .card-body h1,
        .card .card-body h2,
        .card .card-body h3,
        .card .card-body h4,
        .card .card-body h5,
        .card .card-body h6,
        .card .card-body p,
        .card .card-body span,
        .card .card-body div {
            color: black !important;
        }

    /* Special styling for price elements */
    .card .price {
        color: #f39c12 !important; /* Gold color for prices */
        font-weight: 700;
        font-size: 1.2em;
    }

    .card .card-actions {
        min-height: 30px;
        padding: 20px 25px 25px;
        margin: 20px 0 0 0;
        border-top: 1px solid #ecf0f1;
        color: #2c3e50; /* Dark text for actions */
    }

    .card .card-comments {
        padding: 25px;
        margin: 0;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 0 0 16px 16px;
        color: #2c3e50; /* Dark text for comments */
    }

        .card .card-comments .comments-collapse-toggle a,
        .card .card-comments .comments-collapse-toggle span {
            padding-right: 5px;
            overflow: hidden;
            font-size: 13px;
            color: #7f8c8d !important; /* Muted but visible */
            text-overflow: ellipsis;
            white-space: nowrap;
            font-weight: 500;
        }

.card-comments .media-heading {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50 !important; /* Dark text for headings */
}

/* Hover Card Styles - Fixed text visibility */
.card.hovercard {
    position: relative;
    padding-top: 0;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(135deg, rgba(214, 224, 226, 0.3) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(15px);
    color: #2c3e50; /* Ensure dark text */
}

    .card.hovercard .info .title {
        margin-bottom: 6px;
        font-size: 26px;
        line-height: 1.2;
        color: #2c3e50 !important; /* Dark text for titles */
        vertical-align: middle;
        font-weight: 700;
    }

    .card.hovercard .info .desc {
        overflow: hidden;
        font-size: 14px;
        line-height: 22px;
        color: #5d6d7e !important; /* Muted but visible text */
        text-overflow: ellipsis;
        font-weight: 500;
    }

/* Remove problematic dark mode styles that affect cards */
@media (prefers-color-scheme: dark) {
    /* Only apply dark mode to specific elements, not cards */
    body {
        background-color: #1a1a1a;
    }

    /* Keep cards light for text visibility */
    .card {
        background: rgba(255, 255, 255, 0.98) !important;
        color: #2c3e50 !important;
    }

        .card * {
            color: inherit !important;
        }

        .card .card-heading.simple {
            color: #2c3e50 !important;
        }

        .card .card-heading.image .card-heading-header h3 {
            color: #2c3e50 !important;
        }
}

/* Additional text visibility fixes */
.card table,
.card table td,
.card table th,
.card .table,
.card .table td,
.card .table th {
    
}

.card .text-muted {
    color: #7f8c8d !important;
}

.card .text-primary {
    color: #f39c12 !important;
}

.card .text-success {
    color: #27ae60 !important;
}

.card .text-danger {
    color: #e74c3c !important;
}

.card .text-warning {
    color: #f39c12 !important;
}

.card .text-info {
    color: #3498db !important;
}

/* Ensure form elements in cards are visible */
.card input,
.card select,
.card textarea,
.card .form-control {
    color: #2c3e50 !important;
    background-color: white !important;
}

.card label {
    color: #2c3e50 !important;
    font-weight: 600;
}

/* Product/Price specific styling */
.card .product-price,
.card .price-tag,
.card .amount,
.card .currency {
    color: #f39c12 !important;
    font-weight: 700;
    text-shadow: none;
}

.card .product-title,
.card .item-name {
    color: #2c3e50 !important;
    font-weight: 600;
}

.card .product-description,
.card .item-description {
    color: #5d6d7e !important;
    line-height: 1.6;
}

/* Button text in cards */
.card .btn {
  /*  color: white !important;*/
}

.card .btn-primary {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border: none;
}

.card .btn-secondary {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: none;
}

.card .btn-outline-primary {
    color: #f39c12 !important;
    border-color: #f39c12;
}

    .card .btn-outline-primary:hover {
        background-color: #f39c12;
        color: white !important;
    }

/* Modern Footer Styles */
.modern-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 0;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

    .modern-footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #f39c12 0%, #e67e22 50%, #f39c12 100%);
    }

.footer-main {
    padding: 70px 0 50px;
    position: relative;
}

.footer-section {
    height: 100%;
}

.footer-title {
    color: #f39c12;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    position: relative;
}

    .footer-title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 50px;
        height: 3px;
        background: linear-gradient(90deg, #f39c12, #e67e22);
        border-radius: 2px;
    }

.footer-subtitle {
    color: #f39c12;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-description {
    color: #bdc3c7;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 15px;
}

/* Contact Info Styles */
.contact-info {
    margin-top: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #ecf0f1;
    padding: 8px 0;
    transition: all 0.3s ease;
}

    .contact-item:hover {
        color: #f39c12;
        padding-left: 5px;
    }

    .contact-item i {
        color: #f39c12;
        width: 24px;
        margin-right: 15px;
        font-size: 16px;
        transition: transform 0.3s ease;
    }

    .contact-item:hover i {
        transform: scale(1.2);
    }

    .contact-item span {
        font-size: 15px;
        line-height: 1.5;
        font-weight: 500;
    }

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: #bdc3c7;
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
        display: inline-block;
        padding: 5px 0;
    }

        .footer-links a:hover {
            color: #f39c12;
            padding-left: 8px;
            text-decoration: none;
        }

        .footer-links a::before {
            content: '';
            position: absolute;
            left: -20px;
            top: 50%;
            transform: translateY(-50%);
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #f39c12, #e67e22);
            transition: width 0.3s ease;
            border-radius: 1px;
        }

        .footer-links a:hover::before {
            width: 12px;
        }

/* Social Media Footer */
.social-media-footer {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

    .social-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .social-btn:hover::before {
        opacity: 1;
    }

    .social-btn:hover {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
        color: white;
        text-decoration: none;
    }

    .social-btn.facebook {
        background: linear-gradient(45deg, #1877F2, #42a5f5);
    }

    .social-btn.twitter {
        background: linear-gradient(45deg, #1DA1F2, #42a5f5);
    }

    .social-btn.dribbble {
        background: linear-gradient(45deg, #EA4C89, #f06292);
    }

    .social-btn.instagram {
        background: linear-gradient(45deg, #E4405F, #fd1d1d, #fcb045);
    }

    .social-btn.linkedin {
        background: linear-gradient(45deg, #0077B5, #00a0dc);
    }

    .social-btn.youtube {
        background: linear-gradient(45deg, #FF0000, #ff4444);
    }

/* Partners Section */
.partners {
    margin-top: 35px;
}

.partner-logos-container {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.partner-logo {
    height: 35px;
    width: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
    filter: brightness(1.2);
}

    .partner-logo:hover {
        opacity: 1;
        transform: scale(1.1);
        filter: brightness(1.4);
    }

/* Footer Bottom */
.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.copyright {
    margin: 0;
    font-size: 15px;
    color: #bdc3c7;
    font-weight: 500;
}

.developer-credit {
    margin: 0;
    font-size: 15px;
    color: #bdc3c7;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-weight: 500;
}

.developer-link {
    color: #f39c12;
    text-decoration: none;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 600;
}

    .developer-link:hover {
        color: #e67e22;
        text-decoration: none;
        transform: translateX(3px);
    }

.developer-logo {
    height: 28px;
    width: auto;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.developer-link:hover .developer-logo {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-main {
        padding: 50px 0 35px;
    }

    .card {
        margin: 15px 0;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 30px;
    }

    .footer-title {
        font-size: 1.4rem;
    }

    .footer-subtitle {
        font-size: 1.1rem;
    }

    .contact-item {
        margin-bottom: 18px;
    }

    .social-media-footer {
        justify-content: center;
        margin-bottom: 25px;
    }

    .partner-logos {
        justify-content: center;
    }

    .developer-credit {
        justify-content: center;
        margin-top: 15px;
    }

    .footer-bottom .row > div {
        text-align: center !important;
    }

    .modal-dialog {
        margin: 10px;
        width: auto;
        min-width: 300px;
    }

    .modal-admin {
        width: 90%;
        margin-left: -45%;
    }

    .card {
        margin: 10px 0;
        min-height: 300px;
    }

        .card .card-heading,
        .card .card-body,
        .card .card-actions {
            padding: 15px 20px;
        }
}

@media (max-width: 576px) {
    .partner-logos {
        flex-direction: column;
        gap: 15px;
    }

    .partner-logo {
        height: 30px;
    }

    .social-media-footer {
        gap: 12px;
    }

    .social-btn {
        width: 40px;
        height: 40px;
    }

    .footer-title {
        font-size: 1.3rem;
    }

    .card.hovercard .info .title {
        font-size: 22px;
    }

    .card.hovercard .avatar img {
        width: 80px;
        height: 80px;
        max-width: 80px;
        max-height: 80px;
    }
}

@media (max-width: 400px) {
    .modal-dialog {
        position: relative;
        display: table;
        overflow-y: auto;
        overflow-x: auto;
        width: auto;
        margin: 5px;
        min-width: auto;
    }

    .body-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    .card .card-heading,
    .card .card-body,
    .card .card-actions {
        padding: 12px 15px;
    }
}

/* Custom Scrollbar */
.modern-footer ::-webkit-scrollbar {
    width: 8px;
}

.modern-footer ::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.modern-footer ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 4px;
}

    .modern-footer ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #e67e22, #d35400);
    }

/* Loading Animation */
@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Smooth Transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Focus States for Accessibility */
.btn:focus,
.social-btn:focus,
.footer-links a:focus {
    outline: 2px solid #f39c12;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .modern-footer,
    .social-media-footer,
    .btn {
        display: none !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }

    .footer-links a {
        text-decoration: underline;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .card {
        background: rgba(44, 62, 80, 0.95);
        color: #ecf0f1;
    }

        .card .card-heading.simple {
            color: #ecf0f1;
        }

        .card .card-heading.image .card-heading-header h3 {
            color: #ecf0f1;
        }
}

/* Custom Properties for Easy Theme Customization */
:root {
    --primary-color: #f39c12;
    --secondary-color: #e67e22;
    --dark-color: #2c3e50;
    --darker-color: #34495e;
    --light-color: #ecf0f1;
    --muted-color: #bdc3c7;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Enhanced Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* Enhanced Form Controls */
.form-control {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    transition: var(--transition);
    font-size: 15px;
    padding: 12px 15px;
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.25);
    }

/* Enhanced Tables */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}


    .table tbody tr:hover {
        background-color: rgba(243, 156, 18, 0.1);
    }

/* Enhanced Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    font-weight: 500;
    box-shadow: var(--box-shadow);
}

.alert-success {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1) 0%, rgba(39, 174, 96, 0.05) 100%);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(231, 76, 60, 0.05) 100%);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1) 0%, rgba(243, 156, 18, 0.05) 100%);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.alert-info {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0.05) 100%);
    color: #3498db;
    border-left: 4px solid #3498db;
}