/* Custom CSS for CCRM Medical */

/* Additional custom styles */
.page-title-head {
    margin-bottom: 20px;
}

.card {
    border: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.avatar-md {
    width: 40px;
    height: 40px;
}

.avatar-md.rounded-circle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-custom th {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #f8f9fa;
}

.table-custom td {
    vertical-align: middle;
}

.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
}

.auth-box {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-box .card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Custom scrollbar */
.scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

/* Sidebar styles */
.side-nav {
    padding: 10px 0;
}

.side-nav-item {
    margin: 2px 8px;
}

.side-nav-link {
    padding: 10px 15px;
    border-radius: 5px;
    color: #6c757d;
    transition: all 0.2s;
}

.side-nav-link:hover {
    background-color: #f8f9fa;
    color: #333;
}

.side-nav-item.menuitem-active .side-nav-link {
    background-color: #e7f1ff;
    color: #228be6;
}

.menu-text {
    font-size: 0.875rem;
}

.menu-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.side-nav .menu-icon i,
.side-nav .menu-icon svg {
    transition: color 0.2s ease;
}

/* Sidebar icon palette by feature */
.side-nav .menu-icon [data-lucide="circle-gauge"],
.side-nav .menu-icon .lucide-circle-gauge {
    color: #2563eb;
}

.side-nav .menu-icon [data-lucide="building"],
.side-nav .menu-icon .lucide-building {
    color: #f59e0b;
}

.side-nav .menu-icon [data-lucide="users"],
.side-nav .menu-icon .lucide-users {
    color: #10b981;
}

.side-nav .menu-icon [data-lucide="calendar"],
.side-nav .menu-icon .lucide-calendar {
    color: #14b8a6;
}

.side-nav .menu-icon [data-lucide="stethoscope"],
.side-nav .menu-icon .lucide-stethoscope {
    color: #ef4444;
}

.side-nav .menu-icon [data-lucide="file-text"],
.side-nav .menu-icon .lucide-file-text {
    color: #8b5cf6;
}

.side-nav .menu-icon [data-lucide="layout-list"],
.side-nav .menu-icon .lucide-layout-list {
    color: #0ea5e9;
}

.side-nav .menu-icon [data-lucide="user-cog"],
.side-nav .menu-icon .lucide-user-cog {
    color: #f97316;
}

.side-nav .menu-icon [data-lucide="log-out"],
.side-nav .menu-icon .lucide-log-out {
    color: #dc2626;
}

.side-nav-item.menuitem-active .menu-icon i,
.side-nav-item.menuitem-active .menu-icon svg,
.side-nav-link:hover .menu-icon i,
.side-nav-link:hover .menu-icon svg {
    filter: saturate(1.2);
}

/* Topbar styles */
.topbar-menu {
    padding: 0 20px;
}

.topbar-link {
    color: #6c757d;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.2s;
}

.topbar-link:hover {
    background-color: #f8f9fa;
}

/* Form styles */
.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 0.5rem 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: #228be6;
    box-shadow: 0 0 0 0.2rem rgba(34, 139, 230, 0.1);
}

/* Select2 inside Bootstrap input-group (select + right button) */
.input-group .select2-container {
    flex: 1 1 auto;
    width: 1% !important;
    min-width: 0;
}

.input-group .select2-container .select2-selection--single {
    height: calc(2.25rem + 2px);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: calc(2.25rem + 2px);
    padding-left: 0.75rem;
    padding-right: 2rem;
}

.input-group .select2-container .select2-selection--single .select2-selection__arrow {
    height: calc(2.25rem + 2px);
}

/* Button styles */
.btn {
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #228be6;
    border-color: #228be6;
}

.btn-primary:hover {
    background-color: #1c7ed6;
    border-color: #1c7ed6;
}

/* Alert styles */
.alert {
    border: none;
    border-radius: 5px;
    padding: 1rem 1.25rem;
}

.alert-success {
    background-color: #d3f9d8;
    color: #2b8a3e;
}

.alert-danger {
    background-color: #ffe3e3;
    color: #c92a2a;
}

.alert-warning {
    background-color: #fff3bf;
    color: #e67700;
}

.alert-info {
    background-color: #e7f5ff;
    color: #1971c2;
}

/* Stats card styles */
.avatar-img-size {
    width: 60px;
    height: 60px;
}

.fs-xl {
    font-size: 1.5rem;
}

.fs-xxl {
    font-size: 2rem;
}

/* Auth Box - Split Layout Styles */
.auth-box {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-box.p-0 {
    background: transparent;
}

.auth-box .row {
    min-height: 100vh;
}

.auth-box-form {
    background: #fff;
    min-height: 100vh;
}

.card-side-img {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.auth-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.object-fit-cover {
    object-fit: cover;
}

/* App Search - Input with icon */
.app-search {
    position: relative;
}

.app-search .form-control {
    padding-right: 40px;
}

.app-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    pointer-events: none;
}

/* Auth sub text */
.auth-sub-text {
    max-width: 75%;
}

/* Additional auth styles */
.auth-brand p {
    max-width: 75%;
}
