/* Biocursor Professional Hospice Design System */

/* --- Container & Layout --- */
.biocursor-vessel {
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    /* Premium Shadow */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border-top: 5px solid #004a99;
    /* Brand Line */
}

.biocursor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* --- Admin Tabs Beautification (High Specificity) --- */
.wrap .nav-tab-wrapper {
    border-bottom: 1px solid #dcdfe6 !important;
    margin-bottom: 20px !important;
    padding-left: 10px;
}

.wrap .nav-tab-wrapper .nav-tab {
    background: #f5f7fa;
    color: #555;
    border: 1px solid #dcdfe6;
    border-bottom: none;
    margin-right: 5px;
    border-radius: 4px 4px 0 0;
    font-weight: 500;
    padding: 12px 24px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.wrap .nav-tab-wrapper .nav-tab:hover {
    background: #e6f7ff;
    color: #004a99 !important;
}

.wrap .nav-tab-wrapper .nav-tab-active,
.wrap .nav-tab-wrapper .nav-tab-active:hover {
    background: #fff;
    color: #004a99;
    border-color: #dcdfe6;
    border-bottom: 1px solid #fff;
    border-top: 3px solid #004a99;
    /* Brand Active Indicator */
    font-weight: 700;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.03);
}

/* --- Form Elements --- */
.biocursor-form-group {
    margin-bottom: 20px;
    position: relative;
}

.biocursor-form-group.full-width {
    grid-column: span 2;
}

.biocursor-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #004a99;
    /* Brand Color for Labels */
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.biocursor-input,
.biocursor-select,
.biocursor-textarea {
    width: 100%;
    padding: 12px 16px;
    /* Larger padding for premium feel */
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 14px;
    background-color: #f9fafc;
    color: #333;
}

.biocursor-input:focus,
.biocursor-select:focus,
.biocursor-textarea:focus {
    border-color: #004a99;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 74, 153, 0.1);
    /* Brand Glow */
    outline: none;
}

/* --- Search Cell specific beautification --- */
#biocursor-investigation-search,
#biocursor-patient-search {
    padding-left: 35px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='%23999'%3E%3Cpath d='M11 2a9 9 0 106.32 15.49l4.58 4.58a1 1 0 001.4-1.42l-4.58-4.58A9 9 0 0011 2zm0 2a7 7 0 110 14 7 7 0 010-14z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
}

/* --- Buttons --- */
.biocursor-btn {
    background: #004a99;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.biocursor-btn:hover {
    background: #003366;
    transform: translateY(-1px);
}

.biocursor-btn:active {
    transform: translateY(0);
}

/* --- Tables --- */
.biocursor-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    overflow: hidden;
}

.biocursor-table th,
.biocursor-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #ebeef5;
}

.biocursor-table th {
    background-color: #f5f7fa;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.biocursor-table tr:last-child td {
    border-bottom: none;
}

.biocursor-table tr:hover td {
    background-color: #f9fbfd;
}

/* --- Cards / List Items --- */
.biocursor-queue-container {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 25px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.biocursor-patient-card {
    padding: 18px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s;
}

.biocursor-patient-card:hover {
    background: #f0f7ff;
}

.biocursor-patient-card.active {
    border-left: 4px solid #004a99;
    background: #E3F2FD;
}

.biocursor-patient-card h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
}

.biocursor-patient-card p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.biocursor-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: #004a99;
    color: #fff;
    text-transform: uppercase;
}

/* --- Search Results Dropdown --- */
.biocursor-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dcdfe6;
    border-top: none;
    border-radius: 0 0 6px 6px;
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.biocursor-search-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    border-bottom: 1px solid #f5f5f5;
}

.biocursor-search-item:hover {
    background: #f0f7ff;
    color: #004a99;
}

/* --- Actions Dropdown --- */
.biocursor-actions-dropdown {
    position: relative;
    display: inline-block;
}

.biocursor-actions-btn {
    background: #fff;
    border: 1px solid #dcdfe6;
    color: #606266;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.biocursor-actions-btn:hover {
    background: #e6f7ff;
    color: #004a99;
    border-color: #004a99;
}

.biocursor-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
    border: 1px solid #ebeef5;
    border-radius: 6px;
    margin-top: 5px;
    padding: 5px 0;
}

.biocursor-dropdown-content a,
.biocursor-dropdown-content button {
    color: #444;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 13px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.biocursor-dropdown-content a:hover,
.biocursor-dropdown-content button:hover {
    background-color: #f0f7ff;
    color: #004a99;
}

.biocursor-actions-dropdown:hover .biocursor-dropdown-content {
    display: block;
}

.biocursor-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 12px;
    color: #999;
}