/* WooCommerce Live Chat Pro - Styles v2.0.0 */

/* CSS Variables for Theming */
:root {
    --wlc-primary-color: #0073aa;
    --wlc-primary-hover: #005a87;
    --wlc-secondary-color: #f0f0f1;
    --wlc-text-color: #23282d;
    --wlc-border-color: #ddd;
    --wlc-success-color: #4CAF50;
    --wlc-warning-color: #FFC107;
    --wlc-danger-color: #d63638;
    --wlc-chat-width: 380px;
    --wlc-chat-height: 600px;
    --wlc-border-radius: 12px;
    --wlc-shadow: 0 5px 40px rgba(0,0,0,0.16);
}

/* Frontend Styles */

/* Chat Toggle Button */
#wlc-chat-toggle {
    position: fixed;
    width: 60px;
    height: 60px;
    background: var(--wlc-primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    box-shadow: var(--wlc-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wlc-chat-toggle.wlc-bottom-right {
    bottom: 20px;
    right: 20px;
}

#wlc-chat-toggle.wlc-bottom-left {
    bottom: 20px;
    left: 20px;
}

#wlc-chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 50px rgba(0,0,0,0.2);
}

#wlc-chat-toggle.has-new-message {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 115, 170, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(0, 115, 170, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 115, 170, 0);
    }
}

.wlc-toggle-icon {
    position: relative;
    width: 28px;
    height: 28px;
}

.wlc-toggle-icon svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.wlc-unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--wlc-danger-color);
    color: white;
    border-radius: 12px;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    padding: 0 6px;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.wlc-toggle-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.wlc-toggle-tooltip.show {
    opacity: 1;
    transform: translateY(-10px);
}

.wlc-toggle-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 25px;
    width: 10px;
    height: 10px;
    background: #333;
    transform: rotate(45deg);
}

/* Chat Widget */
#wlc-chat-widget {
    position: fixed;
    width: var(--wlc-chat-width);
    height: var(--wlc-chat-height);
    background: white;
    border-radius: var(--wlc-border-radius);
    box-shadow: var(--wlc-shadow);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#wlc-chat-widget.wlc-bottom-right {
    bottom: 90px;
    right: 20px;
}

#wlc-chat-widget.wlc-bottom-left {
    bottom: 90px;
    left: 20px;
}

#wlc-chat-widget.opening {
    animation: slideUp 0.3s ease-out;
}

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

#wlc-chat-widget.minimized {
    height: 60px;
}

/* Chat Header */
#wlc-chat-header {
    background: var(--wlc-primary-color);
    color: white;
    padding: 0;
    border-radius: var(--wlc-border-radius) var(--wlc-border-radius) 0 0;
    position: relative;
}

.wlc-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}

.wlc-agent-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wlc-agent-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.wlc-agent-avatar::before {
    content: '👤';
}

.wlc-agent-details {
    display: flex;
    flex-direction: column;
}

.wlc-agent-name {
    font-weight: 600;
    font-size: 16px;
}

.wlc-agent-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    opacity: 0.9;
}

.wlc-status-indicator {
    width: 8px;
    height: 8px;
    background: var(--wlc-success-color);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

.wlc-header-actions button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.wlc-header-actions button:hover {
    background: rgba(255,255,255,0.2);
}

/* Typing Indicator */
#wlc-typing-indicator {
    position: absolute;
    bottom: -30px;
    left: 16px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

#wlc-typing-indicator span {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    display: inline-block;
    animation: typing 1.4s infinite;
}

#wlc-typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

#wlc-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Chat Messages */
#wlc-chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #f8f9fa;
    position: relative;
}

.wlc-messages-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wlc-message {
    max-width: 75%;
    animation: messageIn 0.3s ease;
}

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

.wlc-message.visitor {
    align-self: flex-end;
}

.wlc-message.admin {
    align-self: flex-start;
}

.wlc-message.system {
    align-self: center;
    max-width: 90%;
    text-align: center;
}

.message-author {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.message-content {
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
    position: relative;
    line-height: 1.4;
}

.wlc-message.visitor .message-content {
    background: var(--wlc-primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.wlc-message.admin .message-content {
    background: white;
    color: var(--wlc-text-color);
    border: 1px solid var(--wlc-border-color);
    border-bottom-left-radius: 4px;
}

.wlc-message.system .message-content {
    background: rgba(0,0,0,0.05);
    color: #666;
    font-size: 13px;
    padding: 8px 12px;
}

.message-attachment {
    margin-top: 8px;
}

.message-attachment img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.message-attachment img:hover {
    transform: scale(1.05);
}

.message-attachment a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 8px;
    background: rgba(0,0,0,0.1);
    border-radius: 6px;
}

.wlc-message small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    opacity: 0.7;
}

/* Chat Input Area */
#wlc-chat-input-area {
    background: white;
    border-top: 1px solid var(--wlc-border-color);
    padding: 12px;
}

#wlc-attachments-preview {
    margin-bottom: 8px;
}

.wlc-attachment-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 8px;
    position: relative;
}

.wlc-attachment-preview img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.wlc-file-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wlc-secondary-color);
    border-radius: 4px;
    font-size: 24px;
}

.wlc-remove-attachment {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--wlc-danger-color);
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

#wlc-chat-input {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

#wlc-message-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--wlc-border-color);
    border-radius: 24px;
    outline: none;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    max-height: 120px;
    transition: border-color 0.2s ease;
}

#wlc-message-input:focus {
    border-color: var(--wlc-primary-color);
}

#wlc-chat-input button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wlc-chat-input button:hover {
    background: var(--wlc-secondary-color);
}

#wlc-send-btn {
    background: var(--wlc-primary-color) !important;
    color: white;
    width: 40px;
    height: 40px;
}

#wlc-send-btn:hover {
    background: var(--wlc-primary-hover) !important;
    transform: scale(1.1);
}

#wlc-send-btn:active {
    transform: scale(0.95);
}

/* Emoji Picker */
#wlc-emoji-picker {
    position: absolute;
    bottom: 60px;
    right: 12px;
    background: white;
    border: 1px solid var(--wlc-border-color);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 8px;
    width: 280px;
    max-height: 200px;
    overflow-y: auto;
}

.wlc-emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
}

.wlc-emoji {
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    text-align: center;
    font-size: 20px;
    transition: all 0.2s ease;
}

.wlc-emoji:hover {
    background: var(--wlc-secondary-color);
    transform: scale(1.2);
}

/* Chat Ended / Rating */
#wlc-chat-ended {
    padding: 30px;
    text-align: center;
}

.wlc-rating-container h4 {
    margin: 0 0 20px 0;
    color: var(--wlc-text-color);
}

.wlc-rating-stars {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.wlc-rating-stars span {
    cursor: pointer;
    font-size: 32px;
    transition: all 0.2s ease;
    filter: grayscale(1);
}

.wlc-rating-stars span:hover,
.wlc-rating-stars span.selected {
    filter: grayscale(0);
    transform: scale(1.2);
}

#wlc-rating-feedback {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--wlc-border-color);
    border-radius: 8px;
    resize: none;
    font-family: inherit;
    margin-bottom: 16px;
}

#wlc-submit-rating {
    background: var(--wlc-primary-color);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

#wlc-submit-rating:hover {
    background: var(--wlc-primary-hover);
    transform: translateY(-2px);
}

.wlc-thank-you {
    font-size: 18px;
    color: var(--wlc-success-color);
    padding: 40px;
}

/* Admin Styles */

.wlc-admin-wrap {
    margin-top: 20px;
}

.wlc-agent-status-bar {
    background: white;
    padding: 15px 20px;
    border: 1px solid var(--wlc-border-color);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.wlc-agent-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

#wlc-agent-status-select {
    padding: 6px 12px;
    border: 1px solid var(--wlc-border-color);
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.wlc-stats-mini {
    display: flex;
    gap: 24px;
}

.wlc-stats-mini span {
    color: #666;
    font-size: 14px;
}

.wlc-stats-mini strong {
    color: var(--wlc-text-color);
    font-size: 18px;
    margin-left: 6px;
}

#wlc-admin-container {
    display: flex;
    gap: 20px;
    height: calc(100vh - 200px);
    min-height: 600px;
}

/* Sessions Sidebar */
#wlc-sessions-sidebar {
    width: 320px;
    background: white;
    border: 1px solid var(--wlc-border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wlc-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--wlc-border-color);
}

.wlc-sidebar-header h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: var(--wlc-text-color);
}

.wlc-session-filters {
    display: flex;
    gap: 8px;
}

.wlc-filter-btn {
    padding: 6px 12px;
    border: 1px solid var(--wlc-border-color);
    background: white;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.wlc-filter-btn:hover {
    border-color: var(--wlc-primary-color);
    color: var(--wlc-primary-color);
}

.wlc-filter-btn.active {
    background: var(--wlc-primary-color);
    color: white;
    border-color: var(--wlc-primary-color);
}

#wlc-sessions {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

#wlc-sessions li {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

#wlc-sessions li:hover {
    background: #f8f9fa;
}

#wlc-sessions li.active {
    background: #e3f2fd;
    border-left: 3px solid var(--wlc-primary-color);
    padding-left: 17px;
}

.wlc-session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.wlc-session-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wlc-session-name {
    font-weight: 600;
    color: var(--wlc-text-color);
}

.wlc-session-time {
    font-size: 12px;
    color: #999;
}

.wlc-unread-count {
    background: var(--wlc-danger-color);
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.wlc-session-preview {
    font-size: 13px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 6px;
}

.wlc-session-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.wlc-cart-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wlc-rating-indicator {
    color: #FFC107;
}

.no-sessions {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

/* Chat Area */
#wlc-chat-area {
    flex: 1;
    background: white;
    border: 1px solid var(--wlc-border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#wlc-visitor-info-bar {
    padding: 16px 20px;
    border-bottom: 1px solid var(--wlc-border-color);
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wlc-visitor-details {
    display: flex;
    gap: 16px;
    align-items: center;
}

.wlc-visitor-name {
    font-weight: 600;
    color: var(--wlc-text-color);
}

.wlc-visitor-location,
.wlc-visitor-device {
    font-size: 13px;
    color: #666;
}

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

.wlc-chat-actions button {
    padding: 6px 12px;
    border: 1px solid var(--wlc-border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.wlc-chat-actions button:hover {
    background: var(--wlc-secondary-color);
    border-color: var(--wlc-primary-color);
}

#wlc-main-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

#wlc-messages-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--wlc-border-color);
}

#wlc-admin-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

#wlc-admin-typing {
    padding: 12px 20px;
    background: white;
    border-top: 1px solid var(--wlc-border-color);
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wlc-typing-dots {
    display: flex;
    gap: 4px;
}

.wlc-typing-dots span {
    width: 4px;
    height: 4px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

/* Info Panel */
#wlc-info-panel {
    width: 350px;
    background: white;
    overflow-y: auto;
}

.wlc-info-tabs {
    display: flex;
    border-bottom: 1px solid var(--wlc-border-color);
}

.wlc-tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
    position: relative;
}

.wlc-tab-btn:hover {
    color: var(--wlc-primary-color);
    background: #f8f9fa;
}

.wlc-tab-btn.active {
    color: var(--wlc-primary-color);
    font-weight: 600;
}

.wlc-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--wlc-primary-color);
}

.wlc-tab-content {
    padding: 20px;
}

/* Info Sections */
.wlc-info-section {
    margin-bottom: 24px;
}

.wlc-info-row {
    display: flex;
    padding: 8px 0;
    font-size: 14px;
}

.wlc-info-row label {
    font-weight: 600;
    color: #666;
    width: 100px;
    flex-shrink: 0;
}

.wlc-info-row span {
    color: var(--wlc-text-color);
}

.wlc-info-row a {
    color: var(--wlc-primary-color);
    text-decoration: none;
}

.wlc-info-row a:hover {
    text-decoration: underline;
}

/* Cart Summary */
.wlc-cart-summary h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: var(--wlc-text-color);
}

.wlc-cart-items {
    margin-bottom: 20px;
}

.wlc-cart-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
}

.wlc-cart-item:last-child {
    border-bottom: none;
}

.wlc-cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.wlc-item-details {
    flex: 1;
}

.wlc-item-details a {
    color: var(--wlc-text-color);
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.wlc-item-details a:hover {
    color: var(--wlc-primary-color);
}

.wlc-item-price {
    font-size: 13px;
    color: #666;
}

.wlc-item-total {
    font-weight: 600;
    color: var(--wlc-text-color);
}

.wlc-cart-totals {
    border-top: 2px solid var(--wlc-border-color);
    padding-top: 16px;
}

.wlc-total-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.wlc-total-row.discount {
    color: var(--wlc-success-color);
}

.wlc-total-row.total {
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--wlc-border-color);
}

.wlc-cart-actions {
    margin-top: 20px;
    display: flex;
    gap: 8px;
}

.wlc-action-btn {
    flex: 1;
    padding: 8px 12px;
    background: var(--wlc-primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.wlc-action-btn:hover {
    background: var(--wlc-primary-hover);
    transform: translateY(-1px);
}

/* Order History */
.wlc-order-history h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: var(--wlc-text-color);
}

.wlc-orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wlc-order-item {
    padding: 12px;
    border: 1px solid var(--wlc-border-color);
    border-radius: 6px;
    background: #f8f9fa;
}

.wlc-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.wlc-order-status {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.wlc-order-status.status-completed {
    background: #d1fae5;
    color: #059669;
}

.wlc-order-status.status-processing {
    background: #fef3c7;
    color: #d97706;
}

.wlc-order-status.status-pending {
    background: #e0e7ff;
    color: #4f46e5;
}

.wlc-order-details {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
}

/* Admin Input Area */
#wlc-admin-input-area {
    padding: 16px 20px;
    border-top: 1px solid var(--wlc-border-color);
    background: white;
}

#wlc-quick-responses {
    position: relative;
    margin-bottom: 12px;
}

#wlc-quick-responses-btn {
    padding: 6px 12px;
    border: 1px solid var(--wlc-border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

#wlc-quick-responses-btn:hover {
    background: var(--wlc-secondary-color);
    border-color: var(--wlc-primary-color);
}

#wlc-quick-responses-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--wlc-border-color);
    border-radius: 8px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 8px;
}

.wlc-quick-response-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wlc-quick-response-item:hover {
    background: #f8f9fa;
}

.wlc-quick-response-item:last-child {
    border-bottom: none;
}

.wlc-quick-response-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--wlc-text-color);
}

.wlc-quick-response-item p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

#wlc-admin-input {
    display: flex;
    gap: 12px;
}

#wlc-admin-message-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--wlc-border-color);
    border-radius: 8px;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.2s ease;
}

#wlc-admin-message-input:focus {
    border-color: var(--wlc-primary-color);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

#wlc-admin-send-btn {
    padding: 10px 24px;
    background: var(--wlc-primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

#wlc-admin-send-btn:hover:not(:disabled) {
    background: var(--wlc-primary-hover);
    transform: translateY(-1px);
}

#wlc-admin-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty States */
#wlc-no-selection {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--wlc-border-color);
    border-radius: 8px;
}

.wlc-empty-state {
    text-align: center;
    padding: 40px;
}

.wlc-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.wlc-empty-state h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: var(--wlc-text-color);
}

.wlc-empty-state p {
    margin: 0;
    color: #666;
}

.wlc-empty-cart,
.wlc-no-orders {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1200px) {
    #wlc-info-panel {
        width: 300px;
    }
}

@media (max-width: 768px) {
    #wlc-chat-widget {
        width: 100%;
        height: 100%;
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        border-radius: 0;
        max-width: none;
    }
    
    #wlc-chat-toggle {
        bottom: 20px;
        right: 20px;
    }
    
    #wlc-admin-container {
        flex-direction: column;
        height: auto;
    }
    
    #wlc-sessions-sidebar {
        width: 100%;
        height: 300px;
    }
    
    #wlc-info-panel {
        width: 100%;
    }
    
    #wlc-main-content {
        flex-direction: column;
    }
    
    #wlc-messages-panel {
        border-right: none;
        border-bottom: 1px solid var(--wlc-border-color);
    }
}

/* Animations for Admin */
#wlc-admin-messages .wlc-message {
    animation: messageIn 0.3s ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Print Styles */
@media print {
    #wlc-chat-toggle,
    #wlc-chat-widget,
    .wlc-admin-wrap {
        display: none !important;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --wlc-secondary-color: #2d2d2d;
        --wlc-text-color: #e1e1e1;
        --wlc-border-color: #444;
    }
    
    /* Add more dark mode styles as needed */
}

/* Loading States */
.wlc-loading {
    position: relative;
    pointer-events: none;
}

.wlc-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--wlc-primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Tooltips */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    margin-bottom: 8px;
}

/* Custom Checkbox/Radio Styles */
input[type="checkbox"],
input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--wlc-border-color);
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: middle;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background: var(--wlc-primary-color);
    border-color: var(--wlc-primary-color);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    display: block;
    text-align: center;
    color: white;
    font-size: 12px;
    line-height: 14px;
}

input[type="radio"]:checked::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    margin: 4px auto;
}