/* ========================================
   QUICK ACTIONS BOTTOM SHEET STYLES
   Ubicación: /src/assets/css/modules/terminals/quick-actions-bottomsheet.css
======================================== */

.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.bottom-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 70vh;
    min-height: 40vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bottom-sheet.active {
    transform: translateY(0);
}

.bottom-sheet.dragging {
    transition: none;
}

/* Drag Handle */
.drag-handle {
    width: 40px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    margin: 12px auto 8px;
    cursor: grab;
    transition: all 0.2s ease;
}

.drag-handle:active {
    cursor: grabbing;
    background: #9ca3af;
}

/* Header */
.bottom-sheet-header {
    padding: 8px 20px 16px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.bottom-sheet-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.bottom-sheet-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 4px 0 0;
}

/* Content */
.bottom-sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
}

/* Category Section */
.category-section {
    margin-bottom: 24px;
}

.category-title {
    font-size: 16px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 16px;
    padding-left: 8px;
    border-left: 4px solid #3b82f6;
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.option-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.option-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.option-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.option-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
    transition: all 0.2s ease;
}

.option-title {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    line-height: 1.3;
}

.option-description {
    font-size: 10px;
    color: #6b7280;
    line-height: 1.3;
}

/* Color Themes for Categories */
.tickets-category .option-icon {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
}

.tickets-category .option-card:hover .option-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    transform: scale(1.1);
}

.prizes-category .option-icon {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
}

.prizes-category .option-card:hover .option-icon {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    transform: scale(1.1);
}

.system-category .option-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.system-category .option-card:hover .option-icon {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
    transform: scale(1.1);
}

/* Status indicators */
.option-status {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
}

.option-status.disabled {
    background: #ef4444;
}

.option-status.warning {
    background: #f59e0b;
}

/* Ripple effect */
.option-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.option-card:active::before {
    width: 300px;
    height: 300px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .bottom-sheet {
        max-height: 75vh;
        border-radius: 16px 16px 0 0;
    }

    .bottom-sheet-content {
        padding: 16px;
    }

    .options-grid {
        gap: 8px;
    }

    .option-card {
        padding: 12px 8px;
    }

    .option-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-bottom: 8px;
    }

    .option-title {
        font-size: 11px;
    }

    .option-description {
        font-size: 9px;
    }

    .category-title {
        font-size: 14px;
        padding: 10px 12px;
        margin-bottom: 12px;
    }
}

@media (max-width: 360px) {
    .option-card {
        padding: 10px 6px;
    }

    .option-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .option-title {
        font-size: 10px;
    }

    .option-description {
        font-size: 8px;
    }
}

/* Scrollbar personalizado */
.bottom-sheet-content::-webkit-scrollbar {
    width: 6px;
}

.bottom-sheet-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.bottom-sheet-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.bottom-sheet-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}