/**
 * Book Borrow Status Styles
 * Visual indicators for different book access types
 */

/* ============================================
   BOOK STATUS BADGES
   ============================================ */

.book-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* For Sale Status - Green */
.book-status.for-sale {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Borrowable Status - Blue */
.book-status.borrowable {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Reference Only Status - Orange/Yellow */
.book-status.reference {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Restricted Status - Red */
.book-status.restricted {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Hover effects */
.book-card:hover .book-status {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ============================================
   ADMIN PANEL BADGES
   ============================================ */

.admin-table .badge-success {
    background: #d4edda;
    color: #155724;
}

.admin-table .badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.admin-table .badge-warning {
    background: #fff3cd;
    color: #856404;
}

.admin-table .badge-danger {
    background: #f8d7da;
    color: #721c24;
}

/* ============================================
   STATUS FILTER (Optional for future)
   ============================================ */

.status-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.status-filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 2px solid transparent;
    background: var(--background);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-filter-btn:hover {
    border-color: var(--primary);
    background: white;
}

.status-filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ============================================
   BOOK DETAILS INFO
   ============================================ */

.book-access-info {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
    background: var(--background);
}

.book-access-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--text);
}

.book-access-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Status-specific info boxes */
.access-info-borrowable {
    border-left: 4px solid #0c5460;
}

.access-info-reference {
    border-left: 4px solid #856404;
}

.access-info-restricted {
    border-left: 4px solid #721c24;
}

.access-info-for-sale {
    border-left: 4px solid #155724;
}

/* ============================================
   STATUS ICONS
   ============================================ */

.status-icon {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    line-height: 1.25rem;
    text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .book-status {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .status-filter {
        gap: 0.25rem;
    }
    
    .status-filter-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .book-status {
        border: 1px solid #000;
        color: #000;
        background: #fff;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Ensure status is visible in high contrast mode */
@media (prefers-contrast: high) {
    .book-status {
        border-width: 2px;
        font-weight: 600;
    }
}

/* Screen reader only text for better accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

