.doc-card {
    background: #b0d2ff0a;
    border: 1px solid #07325133;
    border-radius: 16px;
    transition: .3s;
    box-shadow: 0 4px 10px rgb(32 66 161 / 8%);
    height: 100%;
}

.doc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .15);
}

.doc-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dc3545, #ff5f6d);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, .4);
}

.doc-title {
    color: var(--tiski-dark);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

.doc-date {
    text-align: center;
    font-size: .85rem;
    opacity: .75;
    margin-bottom: .25rem;
}

.hidden-doc {
    display: none !important;
}

/* Additional tweak for form-floating focused state color */
.form-floating>.form-select:focus~label {
    color: #0d6efd;
}

.form-select:focus {
    box-shadow: none;
    background-color: #e9ecef;
    /* slightly darker on focus */
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.text-xs {
    font-size: 0.75rem;
}

/* Custom Select & Oval Styles */
.custom-select-container {
    position: relative;
    /* Ensure dropdown sits above other content */
}

.custom-select-trigger {
    border-radius: 2rem;
    padding: 1.625rem 1.5rem 0.625rem 1.5rem;
    border: 1px solid transparent;
    background-color: #f8f9fa;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    min-height: 58px;
    /* Match form-floating height */
    display: flex;
    align-items: center;
}

.custom-select-trigger:focus,
.custom-select-container.open .custom-select-trigger {
    background-color: #fff;
    border-color: #86b7fe;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

.custom-select-label {
    position: absolute;
    left: 1.5rem;
    top: 1rem;
    color: #6c757d;
    font-weight: 500;
    opacity: 0.85;
    font-size: 1rem;
    transition: all 0.2s ease;
    pointer-events: none;
}

/* Floating effect simulation */
.custom-select-container.has-value .custom-select-label,
.custom-select-container.open .custom-select-label {
    top: 0.25rem;
    font-size: 0.75rem;
    /* transform scale imitation */
    opacity: 0.75;
    color: #0d6efd;
}

.custom-select-value {
    margin-top: 0.75rem;
    /* Space for the label */
    color: #212529;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* The Beautiful Dropdown List */
.custom-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    /* High z-index to overlap */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
}

.custom-select-container.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    color: #495057;
}

.custom-option:hover {
    background-color: #f1f5f9;
    color: #0d6efd;
    transform: translateX(4px);
}

.custom-option.selected {
    background-color: #e0e7ff;
    color: #0d6efd;
}

/* Arrow icon */
.custom-arrow {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: transform 0.3s;
    color: #6c757d;
}

.custom-select-container.open .custom-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Hide native select but keep it functional */
.native-select-hidden {
    display: none !important;
}

/* Filter Container Polish */
#filterCard .bg-white {
    border-radius: 24px !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04) !important;
}

/* Scrollbar nice look */
.custom-options::-webkit-scrollbar {
    width: 6px;
}

.custom-options::-webkit-scrollbar-track {
    background: transparent;
}

.custom-options::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
}
