/* Academic Redesign Styles with Native Poppins Font */
.academic-search-container {
    background-color: #f8fafc;
    min-height: 80vh;
    font-family: 'Poppins', sans-serif;
    color: #334155;
}

.academic-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 30px -10px rgba(148, 163, 184, 0.12), 0 1px 3px rgba(148, 163, 184, 0.05);
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.academic-title-area {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.academic-title {
    font-family: 'Poppins', sans-serif;
    color: #0f172a;
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.academic-title i.text-primary {
    color: #4285F4 !important;
}

.academic-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Builder Card Inside Form */
.builder-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.builder-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.builder-title i {
    color: #4285F4 !important;
}

/* Input & Select Box styling override */
.academic-search-container select.academic-input, 
.academic-search-container input.academic-input,
.academic-search-container #master-field,
.academic-search-container #master-value,
.academic-search-container #master-value-init,
.academic-search-container #master-value-start,
.academic-search-container #master-value-end {
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-size: 1.15rem !important;
    height: 58px !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
    transition: all 0.2s ease-in-out !important;
}

.academic-search-container select.academic-input:focus, 
.academic-search-container input.academic-input:focus,
.academic-search-container #master-field:focus,
.academic-search-container #master-value:focus,
.academic-search-container #master-value-start:focus,
.academic-search-container #master-value-end:focus {
    border-color: #4285F4 !important;
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.1) !important;
}

/* Floating label styles integration */
.custom-floating-label {
    position: relative;
    width: 100%;
}
.custom-floating-label label {
    position: absolute;
    top: 50%;
    inset-inline-start: 1rem;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    transition: all 0.2s ease-in-out;
    margin-bottom: 0;
    font-size: 1.15rem;
    z-index: 15;
    background-color: transparent;
    padding: 0;
}
.custom-floating-label input.form-control:focus ~ label,
.custom-floating-label input.form-control:not(:placeholder-shown) ~ label,
.custom-floating-label select.form-select ~ label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #4285F4;
    background-color: #fff;
    padding: 0 5px;
    inset-inline-start: 0.8rem;
}

/* Action Buttons */
.btn-academic-add {
    height: 58px;
    width: 100%;
    border-radius: 8px !important;
    /* background-color: #ffffff; */
    border: 1px solid #cbd5e1;
    color: #4285F4;
    font-weight: 600;
    font-size: 1.15rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-academic-add:hover {
    background-color: #4285F4;
    border-color: #4285F4;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.25);
}

.btn-academic-search {
    background: linear-gradient(135deg, #4285F4 0%, #4285F4 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.15rem;
    padding: 0.85rem 2.5rem;
    border-radius: 8px !important;
    transition: all 0.2s ease;
}

.btn-academic-search:hover:not(:disabled) {
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.25);
    background: linear-gradient(135deg, #4285F4 0%, #4285F4 100%);
}

.btn-academic-search:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-academic-clear {
    color: #64748b;
    font-weight: 500;
    font-size: 1.15rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px !important;
    padding: 0.85rem 1.75rem;
    transition: all 0.2s ease;
}

.btn-academic-clear:hover {
    color: #1d4ed8;
    background-color: #eff6ff;
    border-color: #dbeafe;
}

/* Table Styling */
.academic-table {
    border-collapse: separate;
    border-spacing: 0 8px;
    width: 100%;
}

.academic-table thead th {
    font-weight: 600;
    color: #475569;
    font-size: 1.1rem;
    border-bottom: 2px solid #e2e8f0;
    padding: 12px 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.academic-table tbody tr {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.academic-table tbody tr:hover {
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.08);
}

.academic-table tbody td {
    padding: 14px 20px;
    font-size: 1.15rem;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
}

.academic-table tbody td:first-child {
    border-left: 1px solid #f1f5f9;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.academic-table tbody td:last-child {
    border-right: 1px solid #f1f5f9;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Select styling inside table row */
.academic-table tbody select {
    height: 44px !important;
    padding: 4px 30px 4px 12px !important;
    font-size: 1.05rem !important;
    border-radius: 6px !important;
    border: 1px solid #cbd5e1 !important;
    background-position: right 0.75rem center !important;
}

.academic-table tbody select:focus {
    border-color: #4285F4 !important;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1) !important;
}

.operator-badge {
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 700;
    font-size: 1rem;
    padding: 6px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    border: 1px solid #e2e8f0;
}

/* Guide Card Sidebar */
.academic-guide-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.25rem;
    box-shadow: 0 4px 20px -5px rgba(148, 163, 184, 0.08);
}

.guide-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.75rem;
}

.guide-title i {
    color: #4285F4 !important;
}

.guide-item {
    display: flex;
    gap: 14px;
    margin-bottom: 1.5rem;
}

.guide-item:last-child {
    margin-bottom: 0;
}

.guide-icon {
    font-size: 1.35rem;
    color: #4285F4;
    margin-top: 2px;
    background: rgba(66, 133, 244, 0.08);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guide-text h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.guide-text p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Footer Links Alignment */
.academic-footer-links {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.academic-footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.academic-footer-links a:hover {
    color: #4285F4;
}

.academic-footer-links a i {
    color: #4285F4;
}

/* Delete button overrides to be blue-themed instead of red */
.academic-table .remove-filter-btn {
    color: #64748b;
    transition: all 0.2s ease;
}

.academic-table .remove-filter-btn:hover {
    color: #1d4ed8 !important;
    background-color: #eff6ff !important;
}
