/* WC Support Ticket Pro Styles - Loaded on 2025-04-20 08:44:16 */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --success-color: #4cc9f0;
    --danger-color: #f72585;
    --warning-color: #f8961e;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-color: #dfe6e9;
    --admin-card: #ffffff;
    --admin-text: #2d3436;
}

.wcst-container { 
    max-width: 900px; 
    margin: 0 auto; 
    padding: 20px; 
}

.wcst-user-ticket-wrap {
    background: var(--light-color);
    min-height: 100vh;
    padding: 30px 15px;
}

.wcst-form { 
    background: #ffffff; 
    border-radius: 12px; 
    padding: 25px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
    margin-bottom: 30px; 
}

.wcst-form-group { 
    margin-bottom: 20px; 
}

.wcst-form-group label { 
    display: block; 
    font-size: 14px; 
    font-weight: 500; 
    color: var(--dark-color); 
    margin-bottom: 8px; 
}

.wcst-form-group input, 
.wcst-form-group textarea { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    font-size: 14px; 
    background: #f9fafb; 
    transition: border-color 0.2s ease, box-shadow 0.2s ease; 
}

.wcst-form-group input:focus, 
.wcst-form-group textarea:focus { 
    border-color: var(--primary-color); 
    outline: none; 
    box-shadow: 0 0 5px rgba(67, 97, 238, 0.3); 
}

.wcst-form-group textarea { 
    min-height: 120px; 
    resize: vertical; 
}

.wcst-form button, 
.wcst-reply-form button { 
    background: var(--primary-color); 
    border: none; 
    color: white; 
    padding: 12px 25px; 
    border-radius: 8px; 
    font-size: 14px; 
    font-weight: 500; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
}

.wcst-form button:hover, 
.wcst-reply-form button:hover { 
    background: var(--secondary-color); 
    transform: translateY(-2px); 
    box-shadow: 0 3px 8px rgba(0,0,0,0.1); 
}

.wcst-form button.loading::after, 
.wcst-reply-form button.loading::after { 
    content: ""; 
    display: inline-block; 
    width: 16px; 
    height: 16px; 
    border: 2px solid white; 
    border-top-color: transparent; 
    border-radius: 50%; 
    animation: spin 0.6s linear infinite; 
    margin-left: 8px; 
}

.wcst-message { 
    padding: 15px; 
    border-radius: 8px; 
    margin-bottom: 20px; 
    font-size: 14px; 
}

.wcst-message.success { 
    background: #e6fcf5; 
    color: #0ca678; 
    border: 1px solid #0ca678; 
}

.wcst-message.error { 
    background: #fff0f6; 
    color: #c2255c; 
    border: 1px solid #c2255c; 
}

.wcst-tickets-list { 
    background: #ffffff; 
    border-radius: 12px; 
    padding: 20px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
}

.wcst-tickets-table { 
    width: 100%; 
    border-collapse: collapse; 
}

.wcst-tickets-table thead th { 
    background: var(--primary-color); 
    color: white; 
    padding: 15px; 
    text-align: left; 
    font-weight: 500; 
}

.wcst-tickets-table tbody tr { 
    border-bottom: 1px solid var(--border-color); 
    transition: background 0.2s ease; 
}

.wcst-tickets-table tbody tr:hover { 
    background: rgba(67, 97, 238, 0.05); 
}

.wcst-tickets-table td { 
    padding: 15px; 
    vertical-align: middle; 
}

.wcst-ticket-id { 
    font-weight: 600; 
    color: var(--primary-color); 
}

.wcst-ticket-status { 
    display: inline-block; 
    padding: 4px 10px; 
    border-radius: 20px; 
    font-size: 12px; 
    font-weight: 500; 
    color: white; 
}

.wcst-status-open { 
    background: #00b894; 
}

.wcst-status-closed { 
    background: #d63031; 
}

.wcst-status-pending { 
    background: #fdcb6e; 
    color: #2d3436; 
}

.wcst-ticket-action a { 
    color: var(--primary-color); 
    text-decoration: none; 
    font-weight: 500; 
    transition: color 0.2s ease; 
}

.wcst-ticket-action a:hover { 
    color: var(--secondary-color); 
    text-decoration: underline; 
}

.wcst-ticket-detail { 
    background: var(--admin-card); 
    border-radius: 12px; 
    padding: 30px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
    margin-bottom: 30px; 
    transition: transform 0.2s ease; 
}

.wcst-ticket-detail:hover { 
    transform: translateY(-3px); 
}

.wcst-ticket-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 25px; 
    padding-bottom: 20px; 
    border-bottom: 2px solid var(--border-color); 
}

.wcst-ticket-header h2 { 
    margin: 0; 
    font-size: 24px; 
    color: var(--primary-color); 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.wcst-ticket-header h2 i { 
    color: var(--primary-color); 
    opacity: 0.8; 
}

.wcst-ticket-meta { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px; 
    margin-bottom: 25px; 
    padding: 15px; 
    background: #f9fafb; 
    border-radius: 8px; 
    border: 1px solid var(--border-color); 
}

.wcst-ticket-meta-item { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 14px; 
    color: var(--admin-text); 
    font-weight: 500; 
}

.wcst-ticket-meta-item i { 
    color: var(--primary-color); 
    font-size: 16px; 
}

/* Chat UI */
.wcst-chat-container { 
    background: #ffffff; 
    border-radius: 16px; 
    padding: 25px; 
    max-height: 600px; 
    overflow-y: auto; 
    margin-bottom: 30px; 
    border: 1px solid var(--border-color); 
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); 
    scrollbar-width: thin; 
    scrollbar-color: var(--primary-color) #f1f3f5; 
    transition: box-shadow 0.3s ease; 
}

.wcst-chat-container::-webkit-scrollbar { 
    width: 8px; 
}

.wcst-chat-container::-webkit-scrollbar-track { 
    background: #f1f3f5; 
    border-radius: 8px; 
}

.wcst-chat-container::-webkit-scrollbar-thumb { 
    background: var(--primary-color); 
    border-radius: 8px; 
    transition: background 0.2s ease; 
}

.wcst-chat-container::-webkit-scrollbar-thumb:hover { 
    background: var(--secondary-color); 
}

.wcst-chat-box { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    min-height: 100px; 
}

.wcst-chat-message { 
    max-width: 75%; 
    padding: 15px 20px; 
    border-radius: 18px; 
    position: relative; 
    line-height: 1.6; 
    font-size: 14px; 
    animation: slideIn 0.4s ease forwards; 
    transition: transform 0.2s ease, box-shadow 0.2s ease; 
    margin: 5px 10px; 
}

.wcst-chat-message:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); 
}

.wcst-chat-message.user { 
    align-self: flex-start; 
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); 
    border: 1px solid #dfe6e9; 
    border-bottom-left-radius: 6px; 
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1); 
}

.wcst-chat-message.user::before { 
    content: ""; 
    position: absolute; 
    bottom: -8px; 
    left: 12px; 
    border-width: 10px 10px 0 0; 
    border-style: solid; 
    border-color: #f8f9fa transparent; 
    filter: drop-shadow(-2px 0 2px rgba(0, 0, 0, 0.05)); 
}

.wcst-chat-message.admin { 
    align-self: flex-end; 
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); 
    color: white; 
    border-bottom-right-radius: 6px; 
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15); 
}

.wcst-chat-message.admin::before { 
    content: ""; 
    position: absolute; 
    bottom: -8px; 
    right: 12px; 
    border-width: 10px 0 0 10px; 
    border-style: solid; 
    border-color: var(--primary-color) transparent; 
    filter: drop-shadow(2px 0 2px rgba(0, 0, 0, 0.05)); 
}

.wcst-chat-message-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 8px; 
    font-size: 13px; 
    font-weight: 600; 
    opacity: 0.9; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); 
    padding-bottom: 5px; 
}

.wcst-chat-message.admin .wcst-chat-message-header { 
    color: #f1f3f5; 
    border-bottom-color: rgba(255, 255, 255, 0.2); 
}

.wcst-chat-message.user .wcst-chat-message-header { 
    color: var(--dark-color); 
}

.wcst-chat-message-header span { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
}

.wcst-chat-message-header i { 
    font-size: 14px; 
    opacity: 0.8; 
}

.wcst-chat-message-time { 
    font-size: 12px; 
    font-weight: 500; 
    opacity: 0.7; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
}

.wcst-chat-message-time i { 
    font-size: 12px; 
}

.wcst-chat-message-content { 
    word-wrap: break-word; 
    font-size: 14px; 
    line-height: 1.6; 
    color: inherit; 
}

.wcst-chat-message.admin .wcst-chat-message-content { 
    color: white; 
}

.wcst-chat-message.user .wcst-chat-message-content { 
    color: var(--dark-color); 
}

.wcst-reply-form { 
    background: #ffffff; 
    padding: 25px; 
    border-radius: 12px; 
    border: 1px solid var(--border-color); 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
    margin-bottom: 20px; 
}

.wcst-reply-form textarea { 
    width: 100%; 
    padding: 15px; 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    min-height: 150px; 
    resize: vertical; 
    font-size: 14px; 
    background: #f9fafb; 
    transition: border-color 0.2s ease, box-shadow 0.2s ease; 
}

.wcst-reply-form textarea:focus { 
    border-color: var(--primary-color); 
    box-shadow: 0 0 6px rgba(67, 97, 238, 0.3); 
    outline: none; 
}

.wcst-reply-button { 
    background: var(--primary-color); 
    border: none; 
    color: white; 
    padding: 12px 25px; 
    border-radius: 8px; 
    font-size: 14px; 
    font-weight: 500; 
    cursor: pointer; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    transition: all 0.2s ease; 
    align-self: flex-end; 
}

.wcst-reply-button:hover { 
    background: var(--secondary-color); 
    transform: translateY(-2px); 
    box-shadow: 0 3px 8px rgba(0,0,0,0.1); 
}

.wcst-reply-button.loading::after { 
    content: ""; 
    display: inline-block; 
    width: 16px; 
    height: 16px; 
    border: 2px solid white; 
    border-top-color: transparent; 
    border-radius: 50%; 
    animation: spin 0.6s linear infinite; 
    margin-left: 8px; 
}

.wcst-back-button { 
    background: var(--primary-color); 
    color: white; 
    padding: 12px 25px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-size: 14px; 
    font-weight: 500; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    transition: all 0.2s ease; 
}

.wcst-back-button:hover { 
    background: var(--secondary-color); 
    transform: translateY(-2px); 
    box-shadow: 0 3px 8px rgba(0,0,0,0.1); 
}

.wcst-closed-notice { 
    background: #fff0f6; 
    color: var(--danger-color); 
    padding: 15px; 
    border-radius: 8px; 
    font-size: 14px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    border: 1px solid var(--danger-color); 
    margin-bottom: 20px; 
}

.wcst-closed-notice i { 
    font-size: 16px; 
}

.wcst-pagination { 
    display: flex; 
    justify-content: center; 
    gap: 10px; 
    margin-top: 20px; 
}

.wcst-pagination a, 
.wcst-pagination span { 
    padding: 8px 12px; 
    border-radius: 6px; 
    text-decoration: none; 
    color: var(--primary-color); 
    font-weight: 500; 
}

.wcst-pagination a:hover { 
    background: rgba(67, 97, 238, 0.1); 
}

.wcst-pagination span.current { 
    background: var(--primary-color); 
    color: white; 
}

@keyframes slideIn { 
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    } 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}

@keyframes spin { 
    to { 
        transform: rotate(360deg); 
    } 
}

@media (max-width: 768px) {
    .wcst-container, 
    .wcst-user-ticket-wrap { 
        padding: 15px; 
    }
    
    .wcst-form, 
    .wcst-ticket-detail { 
        padding: 20px; 
    }
    
    .wcst-ticket-header { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 15px; 
    }
    
    .wcst-ticket-header h2 { 
        font-size: 20px; 
    }
    
    .wcst-ticket-meta { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 15px; 
        padding: 10px; 
    }
    
    .wcst-chat-container { 
        padding: 15px; 
        max-height: 500px; 
        border-radius: 12px; 
    }
    
    .wcst-chat-message { 
        max-width: 85%; 
        padding: 12px 15px; 
        font-size: 13px; 
        margin: 5px 8px; 
    }
    
    .wcst-chat-message-header { 
        font-size: 12px; 
        margin-bottom: 6px; 
    }
    
    .wcst-chat-message-time { 
        font-size: 11px; 
    }
    
    .wcst-chat-message-content { 
        font-size: 13px; 
    }
    
    .wcst-chat-message.user::before, 
    .wcst-chat-message.admin::before { 
        bottom: -6px; 
        border-width: 8px; 
    }
    
    .wcst-reply-form { 
        padding: 15px; 
    }
    
    .wcst-reply-form textarea { 
        min-height: 120px; 
    }
    
    .wcst-reply-button, 
    .wcst-back-button { 
        width: 100%; 
        justify-content: center; 
    }
    
    .wcst-tickets-table td, 
    .wcst-tickets-table th { 
        padding: 10px; 
        font-size: 13px; 
    }
}

@media (max-width: 480px) {
    .wcst-chat-container { 
        max-height: 400px; 
    }
    
    .wcst-chat-message { 
        max-width: 90%; 
        padding: 10px 12px; 
    }
    
    .wcst-chat-message-header { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 4px; 
    }
    
    .wcst-chat-message-time { 
        font-size: 10px; 
    }
}