/* Sheet Manager Styles */

.sheet-container {
    display: none;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin: 10px 0;
    padding: 15px;
    animation: slideDown 0.3s ease-out;
}

.sheet-container.show {
    display: block;
}

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

.sheet-loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.sheet-error {
    text-align: center;
    padding: 20px;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 0.25rem;
}

.no-sheets {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

/* Sheet Header */
.sheets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.sheets-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

.sheets-actions {
    display: flex;
    gap: 10px;
}

/* Sheet List */
.sheets-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Sheet Item */
.sheet-item {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 12px;
    transition: all 0.2s ease;
}

.sheet-item:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sheet-select {
    margin-right: 15px;
}

.select-sheet-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.select-sheet-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.sheet-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sheet-name {
    font-weight: 500;
    color: #212529;
    font-size: 0.95rem;
}

.sheet-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sheet-meta .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.sheet-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 20px;
}

.status-text {
    font-size: 0.875rem;
    color: #6c757d;
}

.extracted-count {
    font-size: 0.75rem;
    color: #28a745;
    background: #d4edda;
    padding: 2px 8px;
    border-radius: 10px;
}

.sheet-actions {
    display: flex;
    gap: 8px;
}

/* Sheet Status Classes */
.sheet-pending {
    background: #fff3cd;
    border-color: #ffc107;
}

.sheet-processing {
    background: #cce5ff;
    border-color: #0d6efd;
}

.sheet-extracted {
    background: #d4edda;
    border-color: #28a745;
}

.sheet-failed {
    background: #f8d7da;
    border-color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sheet-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .sheet-select {
        margin-right: 0;
    }
    
    .sheet-status {
        margin: 0;
    }
    
    .sheet-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .sheets-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* View Sheets Button Style */
.view-sheets-btn {
    position: relative;
}

.view-sheets-btn:hover {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

/* Sheet Count Badge on Button */
.sheet-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
}