/* support.css - Estilos específicos para el Centro de Soporte */

.support-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    margin: 2rem 0;
    align-items: start;
}

/* Sidebar Icon Circles - Estandarizado */
.sidebar-icon-wrapper {
    background: var(--accent-color);
    color: white !important;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-icon-wrapper i {
    font-size: 0.9rem;
    color: white !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sidebar-block h3 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-text);
}

/* Landing Block Style (Header) */
.support-page-header {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    position: relative;
    border-left: 4px solid var(--accent-color);
}

.support-page-header h1 {
    margin: 0;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary-text);
}

.support-info-text {
    color: var(--secondary-text);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.support-welcome-box {
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Sidebar Area */
.support-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-block {
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Quick Action Buttons - Restored & Static */
.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-support {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    transition: background 0.2s;
    text-decoration: none;
    width: 100%;
    border: none;
    font-size: 0.95rem;
}

.btn-support-primary {
    background: var(--accent-color);
    color: white !important;
}

.btn-support-primary:hover {
    background: var(--accent-hover);
}

.btn-support-outline {
    background: transparent;
    border: 1.5px solid var(--accent-color);
    color: var(--accent-color) !important;
}

.btn-support-outline:hover {
    background: rgba(109, 70, 37, 0.05);
}

/* FAQ Sidebar - Removing bullets and cleaning up */
.faq-sidebar-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.faq-sidebar-item {
    margin-bottom: 1.25rem;
}

.faq-sidebar-link {
    display: block;
    font-size: 0.95rem;
    color: var(--accent-color) !important;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.faq-sidebar-link:hover {
    text-decoration: underline;
}

.faq-sidebar-text {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--secondary-text);
}

/* Horarios de Atención */
.schedule-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--secondary-text);
}

.schedule-row.closed {
    color: #b02a37;
    font-weight: 700;
}

.timezone-box {
    background: #f8f9fa;
    padding: 0.6rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--primary-text);
}

.timezone-box i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Empty State Button - Static */
.btn-empty-state {
    background: var(--accent-color);
    color: white !important;
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1.5rem 0.4rem 0.4rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease;
    font-weight: 600;
    border: none;
    margin-top: 1.5rem;
    gap: 1rem;
    max-width: 100%;
}

.btn-empty-state .icon-circle {
    background: rgba(255, 255, 255, 0.2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-empty-state .icon-circle i {
    color: white !important;
    font-size: 0.85rem;
    margin: 0 !important;
    padding: 0 !important;
}

.btn-empty-state:hover {
    background: var(--accent-hover);
    box-shadow: 0 5px 15px rgba(109, 70, 37, 0.3);
}

/* Ticket List */
.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ticket-item {
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.ticket-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.support-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--primary-bg);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
}

/* Filters */
.support-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-box {
    position: relative;
    flex-grow: 1;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-text);
}

.search-box input {
    padding-left: 2.5rem;
    border-radius: var(--border-radius);
}

.filter-select {
    width: 200px;
    border-radius: var(--border-radius);
}

/* Ticket List Item Internals */
.ticket-info {
    flex-grow: 1;
}

.ticket-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ticket-id-badge {
    font-size: 0.8rem;
    color: var(--secondary-text);
    font-weight: 600;
}

.ticket-title-row h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-text);
}

.unread-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: inline-block;
}

.ticket-meta-row {
    display: flex;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: var(--secondary-text);
}

.ticket-meta-row span {
    display: flex;
    align-items: center;
}

.ticket-status-col {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Status Pills */
.status-pill {
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-block;
}

.status-pill.open {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.status-pill.in_progress {
    background-color: rgba(255, 193, 7, 0.1);
    color: #d39e00;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.status-pill.waiting {
    background-color: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.2);
}

.status-pill.closed {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

/* Responsive Overhaul */
@media (max-width: 991px) {
    .support-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    .support-sidebar, .support-main {
        width: 100% !important;
        grid-column: span 1 !important;
    }
    
    .support-sidebar {
        order: 2;
    }
    
    .support-main {
        order: 1;
    }

    .ticket-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .support-welcome-box {
        padding: 1.5rem;
    }
    
    .sidebar-block {
        padding: 1.25rem;
    }
}

/* Captcha styling */
.captcha-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.captcha-wrapper img.captcha {
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.btn-refresh-captcha {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    cursor: pointer;
}

.message-bubble {
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    margin-bottom: 1.5rem;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.message-user {
    font-weight: 700;
    color: var(--primary-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message-user i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.message-time {
    color: var(--secondary-text);
    font-size: 0.85rem;
}

.staff-label {
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.reply-box {
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 2rem;
}

.reply-box h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--primary-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message-bubble.staff-reply {
    background: rgba(109, 70, 37, 0.04);
    border-color: rgba(109, 70, 37, 0.15);
    margin-left: 2rem;
}
