/* Container Styles */
#blfym {
    font-family: 'Tajawal', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef2f5 100%);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

#blfym:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* Filter Dropdown Styles */
.filter-container {
    margin-bottom: 20px;
}

.filter-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.filter-btn {
    background: linear-gradient(to right, #4a6ea9, #5a7eb9);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    text-align: right;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(74, 110, 169, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn:hover {
    background: linear-gradient(to right, #5a7eb9, #6a8ec9);
    box-shadow: 0 4px 12px rgba(74, 110, 169, 0.4);
}

.filter-btn:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 15px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid white;
    transform: translateY(-50%);
}

.filter-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 100%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 1;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
    border: 1px solid #e0e0e0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.filter-content label {
    display: block;
    padding: 10px 20px;
    cursor: pointer;
    text-align: right;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    position: relative;
}

.filter-content label:before {
    content: "";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    border: 2px solid #ddd;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.filter-content input[type="checkbox"]:checked + label:before {
    background: #4a6ea9;
    border-color: #4a6ea9;
}

.filter-content label:hover {
    background-color: #f5f8ff;
    color: #4a6ea9;
}

.filter-content input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.show {
    display: block;
}

/* Table Styles */
#blfym table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#blfym th {
    background: linear-gradient(to right, #4a6ea9, #5a7eb9);
    color: #fff;
    padding: 14px 20px;
    font-weight: bold;
    text-align: right;
    position: relative;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

#blfym th:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, rgba(255,255,255,0.3), rgba(255,255,255,0.8));
}

#blfym td {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    transition: all 0.3s ease;
}

#blfym tr:hover td {
    background: #f8fbff !important;
    transform: scale(1.005);
    box-shadow: 0 2px 8px rgba(74, 110, 169, 0.1);
}

#blfym tr:nth-child(odd) {
    background: #fafcff;
}

#blfym tr:nth-child(even) {
    background: #ffffff;
}

#blfym tr:last-child td {
    border-bottom: none;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(74, 110, 169, 0.1);
    border-radius: 50%;
    border-top-color: #4a6ea9;
    animation: spin 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    vertical-align: middle;
    margin-right: 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    display: inline-block;
    vertical-align: middle;
    color: #4a6ea9;
    font-weight: bold;
    text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

/* Hover effects for interactive elements */
button, input[type="checkbox"] + label {
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    #blfym {
        padding: 15px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    #blfym .date-column {
        display: none;
    }
    
    #blfym th, #blfym td {
        padding: 10px 12px;
    }
    
    .filter-btn {
        padding: 10px 15px;
    }
}

/* Floating animation for attention */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.highlight {
    animation: float 2s ease-in-out infinite;
    position: relative;
    z-index: 10;
}
