/* Modern UI Component Library */

/* Glassmorphism Effect - Enhanced */
.glass-card,
.card-custom,
.card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.glass-card:hover,
.card-custom:hover {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
    transform: translateY(-2px);
}

.glass-input,
.form-control,
select.form-control {
    background: #ffffff05;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
    border: 1px solid #d7dde4;
    border-radius: 6px;
    color: #333;
    transition: all 0.3s ease;
}

.glass-input:focus,
.form-control:focus,
select.form-control:focus {
    background: #96969638;
    border-color: #343b5d;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

.glass-button,
.btn {
    background: rgba(102, 126, 234, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    transition: all 0.3s ease;
}

.glass-button:hover,
.btn:hover {
    background: rgba(102, 126, 234, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary {
    background: rgba(13, 110, 253, 0.7);
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: rgba(13, 110, 253, 0.9);
}

/* Glass navigation */
.navbar,
.header {
    /* background: rgba(255, 255, 255, 0.1); */
    background: #ffffff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Glass sidebar */
.sidebar {
    /* background: rgba(255, 255, 255, 0.15); */
    background: #495057;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

/* Glass modal */
.modal-content {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
}

/* Glass dropdown */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Glass table */
.table {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.table thead th {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.table tbody tr {
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.01);
}

/* Neumorphism Effect */
.neumorphic {
    background: #f0f3f6;
    border-radius: 20px;
    box-shadow: 8px 8px 16px #d1d9e6, -8px -8px 16px #ffffff;
}

.neumorphic-inset {
    background: #f0f3f6;
    border-radius: 20px;
    box-shadow: inset 8px 8px 16px #d1d9e6, inset -8px -8px 16px #ffffff;
}

/* Modern Input Styles */
.input-modern {
    position: relative;
}

.input-modern label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    pointer-events: none;
    color: #6c757d;
}

.input-modern input:focus + label,
.input-modern input:not(:placeholder-shown) + label {
    top: 0;
    left: 0.75rem;
    font-size: 0.75rem;
    color: #667eea;
    background: white;
    padding: 0 0.5rem;
}

/* Modern Card Hover Effects */
.card-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Modern Badge Styles */
.badge-modern {
    padding: 0.5em 1em;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Modern Alert Styles */
.alert-modern {
    border: none;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Modern Progress Bar */
.progress-modern {
    height: 8px;
    border-radius: 10px;
    background: #e9ecef;
    overflow: hidden;
}

.progress-modern .progress-bar {
    border-radius: 10px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.patient-fieldset {
    /* border: 1px solid #DBDEE0 !important; */
    /* padding: 15px !important; */
    margin: 0 0 25px 0 !important;
    box-shadow: 0px 0px 0px 0px #000;
}
.patient-legend {
    font-size: 1.1em !important;
    font-weight: bold !important;
    text-align: left !important;
    width: auto;
    color: #1b6a7f;
    background: antiquewhite;
    padding: 2px 20px;
    border: 1px solid #DBDEE0 !important;
    margin: 0px;
}

/* Modern Tabs */
.nav-tabs-modern {
    border-bottom: 2px solid #e9ecef;
}

.nav-tabs-modern .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.nav-tabs-modern .nav-link:hover {
    border-bottom-color: #667eea;
    color: #667eea;
}

.nav-tabs-modern .nav-link.active {
    border-bottom-color: #667eea;
    color: #667eea;
    background: transparent;
}

/* Modern Dropdown */
.dropdown-menu-modern {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item-modern {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    margin: 0.25rem 0;
}

.dropdown-item-modern:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}