/* archive-components.css - UI Component styles for Archive Management System */

/* Performance Indicator */
.performance-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    max-width: 400px;
}

.performance-indicator.show {
    display: flex;
    animation: slideInRight 0.3s ease-out;
}

.performance-indicator.info {
    border-left: 4px solid #3b82f6;
}

.performance-indicator.success {
    border-left: 4px solid #10b981;
}

.performance-indicator.warning {
    border-left: 4px solid #f59e0b;
}

.performance-indicator.error {
    border-left: 4px solid #ef4444;
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Buttons */
.btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: inline-block;
    margin-right: 6px;
    margin-bottom: 8px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.7rem;
    display: inline-block;
    margin-right: 4px;
}

.btn-action {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
}

/* Search Stats Button */
.btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-info:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Batch Actions */
.batch-actions {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 4px solid #f59e0b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(226, 232, 240, 0.5);
    overflow-x: auto;
}

.batch-actions h4 {
    color: #92400e;
    margin-bottom: 10px;
    font-size: 1em;
}

.batch-actions > div {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    min-width: fit-content;
}

/* Stats Card */
.stats-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.stats-card h3 {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-card .amount {
    font-size: 1.5em;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Filter Section */
.enhanced-filter-section {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.search-date-row {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

/* ============================================================================
   SMART SEARCH UI ENHANCEMENTS
   ============================================================================ */

/* Enhanced Search Container */
.search-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    position: relative;
}

.search-container .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #94a3b8;
    pointer-events: none;
    opacity: 0.6;
}

.search-container input {
    width: 100%;
    padding: 12px 45px 12px 40px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    background: white;
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Clear Search Button */
.btn-clear-search {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #ef4444;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.btn-clear-search:hover {
    background: #dc2626;
    transform: translateY(-50%) scale(1.1);
}

/* Search Results Banner */
.search-results-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    border-left: 4px solid #10b981;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease;
}

.search-results-banner.no-results {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
    border-left-color: #f59e0b;
}

.search-results-text {
    font-size: 14px;
    font-weight: 600;
    color: #059669;
}

.search-results-banner.no-results .search-results-text {
    color: #d97706;
}

.search-clear-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.search-clear-link:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Searching Indicator */
.searching-indicator {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

.searching-indicator.active {
    display: block;
}

.searching-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

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

/* Search Highlight in Results */
.search-highlight {
    background: #fef3c7;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* Loading State for Table */
.table-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.table-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================================================
   END SMART SEARCH UI ENHANCEMENTS
   ============================================================================ */

.date-range-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-range-container label {
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.date-range-container input {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.filter-dropdowns-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* Amount Range Filter */
.filter-amount-range {
    min-width: 220px;
}

.amount-range-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.amount-range-container input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    width: 100px;
    transition: all 0.3s ease;
}

.amount-range-container input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.amount-range-container span {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Remove number input spinners for cleaner look */
.amount-range-container input[type="number"]::-webkit-inner-spin-button,
.amount-range-container input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.amount-range-container input[type="number"] {
    -moz-appearance: textfield;
}

/* Virtual Table Styles */
.virtual-table-container {
    position: relative;
    height: 600px;
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: white;
}

.virtual-table-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--primary-gradient);
    color: white;
    display: grid;
    grid-template-columns: 80px 100px 1fr 120px 100px 150px 120px 80px 100px 120px 100px 180px;
    gap: 1px;
    padding: 0;
    font-weight: 600;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.virtual-table-header-cell {
    padding: 12px 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.virtual-table-header-cell:hover {
    background: rgba(255, 255, 255, 0.1);
}

.virtual-table-body {
    position: relative;
    min-height: 100%;
}

.virtual-row {
    position: absolute;
    width: 100%;
    display: grid;
    grid-template-columns: 80px 100px 1fr 120px 100px 150px 120px 80px 100px 120px 100px 180px;
    gap: 1px;
    border-bottom: 1px solid #f1f5f9;
    background: white;
    transition: background-color 0.2s;
}

.virtual-row:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.virtual-cell {
    padding: 10px 8px;
    font-size: 0.82em;
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Standard Table Fallback */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
}

.data-table th {
    background: var(--primary-gradient);
    color: white;
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    user-select: none;
}

.data-table th:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4aa0 100%);
}

.data-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.82em;
    transition: all 0.3s ease;
}

.data-table tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Data Display Badges */
.account-highlight {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.75em;
}

.amount-positive {
    color: #059669;
    font-weight: 600;
}

.amount-negative {
    color: #dc2626;
    font-weight: 600;
}

.badge-sample {
    background: linear-gradient(135deg, #d8b4fe 0%, #c084fc 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
}

.badge-csv {
    background: linear-gradient(135deg, #86efac 0%, #22c55e 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
}

.badge-import {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
}

.badge-manual {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .virtual-table-header {
        font-size: 0.7em;
    }
    
    .virtual-row {
        font-size: 0.75em;
    }
    
    .data-table {
        font-size: 0.8rem;
    }
    
    .search-date-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-container {
        min-width: 100%;
        max-width: 100%;
    }
    
    .date-range-container {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .performance-indicator {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 13px;
        padding: 10px 15px;
    }
    
    .search-results-banner {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}
/* ============================================================================
   SMART SEARCH UI STYLES
   Add to your archive-components.css or include as separate stylesheet
   ============================================================================ */

/* Search Container Enhancements */
.search-container {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.search-container input {
    width: 100%;
    padding: 12px 45px 12px 40px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #94a3b8;
    pointer-events: none;
}

/* Clear Search Button */
.btn-clear-search {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #ef4444;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.btn-clear-search:hover {
    background: #dc2626;
    transform: translateY(-50%) scale(1.1);
}

/* Search Results Info Banner */
.search-results-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    border-left: 4px solid #10b981;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease;
}

.search-results-banner.no-results {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
    border-left-color: #f59e0b;
}

.search-results-text {
    font-size: 14px;
    font-weight: 600;
    color: #059669;
}

.search-results-banner.no-results .search-results-text {
    color: #d97706;
}

.search-clear-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.search-clear-link:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Search Stats Button */
.btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-info:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Searching Indicator */
.searching-indicator {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

.searching-indicator.active {
    display: block;
}

.searching-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

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

/* Performance Indicator Enhancements */
.performance-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
}

.performance-indicator.show {
    display: flex;
}

.performance-indicator.info {
    border-left: 4px solid #3b82f6;
}

.performance-indicator.success {
    border-left: 4px solid #10b981;
}

.performance-indicator.warning {
    border-left: 4px solid #f59e0b;
}

.performance-indicator.error {
    border-left: 4px solid #ef4444;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Search Highlight in Results */
.search-highlight {
    background: #fef3c7;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-container {
        max-width: 100%;
    }
    
    .performance-indicator {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 13px;
        padding: 10px 15px;
    }
    
    .search-results-banner {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Loading State for Table */
.table-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.table-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================================================
   WORKFLOW PROGRESS COMPONENT
   Visual guide showing the archive management workflow steps
   ============================================================================ */

.workflow-progress-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.workflow-header {
    background: white;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.workflow-header h3 {
    margin: 0 0 5px 0;
    color: #1a202c;
    font-size: 1.3em;
}

.workflow-header p {
    margin: 0;
    color: #4a5568;
    font-size: 0.95em;
}

.workflow-steps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    background: white;
    border-radius: 10px;
    padding: 25px;
}

.workflow-step {
    flex: 1;
    min-width: 180px;
    padding: 20px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.workflow-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.step-blue {
    background: linear-gradient(135deg, #a8d5ff 0%, #7db9e8 100%);
}

.step-medium-blue {
    background: linear-gradient(135deg, #7db9e8 0%, #5a9fd4 100%);
}

.step-yellow {
    background: linear-gradient(135deg, #d4ff00 0%, #c8f000 100%);
}

.step-cyan {
    background: linear-gradient(135deg, #a0f0ed 0%, #7dd3d0 100%);
}

.step-green {
    background: linear-gradient(135deg, #a8e6a1 0%, #88d180 100%);
}

.step-icon-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.step-icon-group i {
    font-size: 1.5em;
    color: #2d3748;
}

.step-badge {
    background: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
    color: #2d3748;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.step-title {
    font-weight: 700;
    color: #1a202c;
    font-size: 1em;
    margin: 10px 0 0 0;
    line-height: 1.4;
}

.step-description {
    font-size: 0.85em;
    color: #2d3748;
    margin: 10px 0 0 0;
    line-height: 1.4;
}

.workflow-action-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s;
    margin: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.workflow-action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-load {
    background: #667eea;
    color: white;
    width: 100%;
    margin-bottom: 10px;
}

.btn-clear {
    background: #ef4444;
    color: white;
}

.btn-delete {
    background: #dc2626;
    color: white;
    font-size: 1.2em;
    padding: 10px 18px;
}

.btn-view {
    background: #10b981;
    color: white;
}

.btn-edit {
    background: #8b5cf6;
    color: white;
}

.btn-export {
    background: #3b82f6;
    color: white;
}

.btn-import {
    background: #10b981;
    color: white;
}

.action-buttons-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.workflow-arrow {
    font-size: 2em;
    color: #667eea;
    font-weight: bold;
    flex-shrink: 0;
}

/* Workflow Responsive Design */
@media (max-width: 1400px) {
    .workflow-steps-container {
        flex-wrap: wrap;
    }
    
    .workflow-step {
        min-width: calc(33.333% - 20px);
    }
    
    .workflow-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .workflow-step {
        min-width: 100%;
    }
    
    .workflow-progress-section {
        padding: 15px;
    }
    
    .workflow-steps-container {
        padding: 15px;
    }
}

/* ===========================================
   HELP BUTTON FOR EDIT MODAL
   =========================================== */

.modal-help-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.3px;
    position: absolute;
    right: 60px; /* Position to the left of close button */
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.modal-help-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-help-button:active {
    transform: translateY(-50%) scale(0.98);
}

.modal-help-button .help-icon {
    font-size: 1.1em;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

/* Make sure modal header has position relative for absolute positioning */
.modal-header {
    position: relative;
}

/* Adjust close button positioning if needed */
.modal-header .close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* Mobile responsiveness for help button */
@media (max-width: 768px) {
    .modal-help-button {
        font-size: 0.85rem;
        padding: 6px 12px;
        right: 50px;
    }
}

