/**
 * Agentorie Chat LiveChat - Admin Styles
 *
 * @package Agentorie_Chat
 * @since   1.0.0
 */

/* ==========================================================================
   LiveChat Layout
   ========================================================================== */
.agentorie-livechat-wrap {
    max-width: none;
    margin: 0;
    padding: 0;
    height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    background: var(--agentorie-bg-primary);
}

/* Reset WordPress admin textarea styles */
.agentorie-livechat-wrap textarea,
.agentorie-livechat-wrap textarea:focus,
.agentorie-livechat-wrap textarea:hover {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
}

/* ==========================================================================
   LiveChat Header
   ========================================================================== */
.livechat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--agentorie-bg-secondary);
    border-bottom: 1px solid var(--agentorie-border);
    flex-shrink: 0;
}

.livechat-header h1 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.livechat-header .header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.livechat-header .header-center {
    display: flex;
    align-items: center;
}

.livechat-header .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Connection Status */
.connection-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 16px;
    background: var(--agentorie-bg-tertiary);
    color: var(--agentorie-text-secondary);
}

.connection-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--agentorie-text-tertiary);
}

.connection-status.connected {
    background: rgba(16, 185, 129, 0.1);
    color: var(--agentorie-success);
}

.connection-status.connected .status-dot {
    background: var(--agentorie-success);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* Presence Button */
.btn-presence {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-presence.offline {
    background: var(--agentorie-bg-tertiary);
    color: var(--agentorie-text-secondary);
}

.btn-presence.offline:hover {
    background: #e2e8f0;
}

.btn-presence.online {
    background: linear-gradient(135deg, var(--agentorie-success), var(--agentorie-success-dark));
    color: #fff;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

.btn-presence.online:hover {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
}

.presence-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.btn-presence.offline .presence-indicator {
    background: var(--agentorie-text-tertiary);
}

.btn-presence.online .presence-indicator {
    background: #fff;
    animation: pulse-presence 2s infinite;
}

@keyframes pulse-presence {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Unread Badge */
.unread-badge {
    background: linear-gradient(135deg, var(--agentorie-danger), #dc2626);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 10px;
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Sound Button */
.btn-sound {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: var(--agentorie-bg-tertiary);
    color: var(--agentorie-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-sound:hover {
    background: var(--agentorie-primary);
    color: #fff;
}

.btn-sound.muted {
    color: var(--agentorie-danger);
    background: rgba(239, 68, 68, 0.1);
}

/* ==========================================================================
   LiveChat Container
   ========================================================================== */
.livechat-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ==========================================================================
   Conversations Sidebar
   ========================================================================== */
.conversations-sidebar {
    width: 320px;
    background: var(--agentorie-bg-secondary);
    border-right: 1px solid var(--agentorie-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--agentorie-border);
    background: var(--agentorie-bg-tertiary);
}

.sidebar-header h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--agentorie-text-secondary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.conv-count {
    background: linear-gradient(135deg, var(--agentorie-primary), var(--agentorie-primary-light));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.conversations-list::-webkit-scrollbar {
    width: 4px;
}

.conversations-list::-webkit-scrollbar-thumb {
    background: var(--agentorie-border);
    border-radius: 2px;
}

/* Empty State */
.conversations-list .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--agentorie-text-tertiary);
    padding: 20px;
}

.conversations-list .empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.conversations-list .empty-state p {
    font-size: 13px;
    text-align: center;
    margin: 0;
}

/* Conversation Item */
.conv-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--agentorie-border);
    transition: all 0.15s;
    position: relative;
}

.conv-item:hover {
    background: var(--agentorie-bg-tertiary);
}

.conv-item.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.20) 0%, rgba(99, 102, 241, 0.08) 100%);
    border-left: 4px solid var(--agentorie-primary);
    padding-left: 12px;
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.15);
}

.conv-item.active .conv-name {
    color: var(--agentorie-primary);
    font-weight: 700;
}

.conv-item.active .conv-visitor-id {
    background: rgba(99, 102, 241, 0.18);
    color: #4f46e5;
    font-weight: 600;
}

.conv-item.unread {
    background: rgba(59, 130, 246, 0.05);
}

.conv-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 50%;
    background: var(--agentorie-primary);
    border-radius: 0 3px 3px 0;
}

.conv-item.takeover {
    background: rgba(16, 185, 129, 0.05);
}

.conv-item.human-requested {
    background: rgba(245, 158, 11, 0.08);
    border-left: 3px solid var(--agentorie-warning);
    padding-left: 13px;
    animation: pulse-human 2s infinite;
}

@keyframes pulse-human {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: inset 0 0 10px rgba(245, 158, 11, 0.2); }
}

.conv-item.negotiate {
    background: rgba(245, 158, 11, 0.08);
    border-left: 3px solid var(--agentorie-warning);
    padding-left: 13px;
}

/* Conversation Avatar */
.conv-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--agentorie-primary), var(--agentorie-primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.conv-info {
    flex: 1;
    min-width: 0;
}

.conv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.conv-name-with-id {
    display: flex;
    align-items: center;
    gap: 6px;
}

.conv-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--agentorie-text-primary);
}

.conv-visitor-id {
    font-family: monospace;
    font-size: 12px;
    color: #000;
    background: var(--agentorie-bg-tertiary);
    padding: 2px 5px;
    border-radius: 3px;
}

.conv-time {
    font-size: 10px;
    color: var(--agentorie-text-tertiary);
}

.conv-preview {
    font-size: 12px;
    color: var(--agentorie-text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-badge {
    background: linear-gradient(135deg, var(--agentorie-danger), #dc2626);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.human-icon,
.negotiate-icon {
    color: var(--agentorie-warning);
    font-size: 16px;
    margin-left: 6px;
    flex-shrink: 0;
    animation: pulse-icon 1s ease-in-out infinite;
}

/* When both badge and icon are present, adjust spacing */
.conv-badge + .human-icon,
.conv-badge + .negotiate-icon {
    margin-left: 4px;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

.takeover-icon {
    color: var(--agentorie-success);
    font-size: 16px;
    margin-left: 6px;
    flex-shrink: 0;
}

/* ==========================================================================
   Chat Area
   ========================================================================== */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--agentorie-bg-primary);
}

/* Chat Placeholder */
.chat-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--agentorie-text-tertiary);
    padding: 40px;
}

.chat-placeholder .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
    color: var(--agentorie-primary);
}

.chat-placeholder h3 {
    font-size: 18px;
    color: var(--agentorie-text-secondary);
    margin: 0 0 8px 0;
}

.chat-placeholder p {
    font-size: 14px;
    margin: 0;
}

/* Chat Active */
.chat-active {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Chat Header */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--agentorie-bg-secondary);
    border-bottom: 1px solid var(--agentorie-border);
    flex-shrink: 0;
}

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

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--agentorie-primary), var(--agentorie-primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.chat-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-session {
    font-size: 14px;
    font-weight: 600;
    color: var(--agentorie-text-primary);
}

.chat-time {
    font-size: 12px;
    color: var(--agentorie-text-tertiary);
}

.chat-url {
    font-size: 11px;
    color: var(--agentorie-text-tertiary);
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-url a {
    color: var(--agentorie-text-tertiary);
    text-decoration: none;
}

.chat-url a:hover {
    color: var(--agentorie-primary);
    text-decoration: underline;
}

/* Chat Actions */
.chat-actions {
    display: flex;
    gap: 8px;
}

.btn-takeover,
.btn-release {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-takeover {
    background: linear-gradient(135deg, var(--agentorie-primary), var(--agentorie-primary-dark));
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-takeover:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-release {
    background: var(--agentorie-bg-tertiary);
    color: var(--agentorie-text-secondary);
    border: 1px solid var(--agentorie-border);
}

.btn-release:hover {
    background: linear-gradient(135deg, var(--agentorie-warning), #d97706);
    color: #fff;
    border-color: transparent;
}

/* ==========================================================================
   Messages
   ========================================================================== */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(180deg, var(--agentorie-bg-primary), var(--agentorie-bg-tertiary));
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--agentorie-border);
    border-radius: 3px;
}

/* Message */
.msg {
    display: flex;
    max-width: 65%;
    animation: msg-appear 0.25s ease;
}

@keyframes msg-appear {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.msg.client {
    align-self: flex-start;
}

.msg.bot {
    align-self: flex-end;
}

.msg-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    position: relative;
}

.msg.client .msg-bubble {
    background: var(--agentorie-bg-secondary);
    border: 1px solid var(--agentorie-border);
    border-bottom-left-radius: 4px;
    color: var(--agentorie-text-primary);
}

.msg.bot .msg-bubble {
    background: linear-gradient(135deg, var(--agentorie-primary), var(--agentorie-primary-dark));
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.msg.bot.admin .msg-bubble {
    background: linear-gradient(135deg, var(--agentorie-success), var(--agentorie-success-dark));
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.sender-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    opacity: 0.8;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.msg-text {
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.msg-time {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 6px;
    text-align: right;
}

/* ==========================================================================
   Chat Input
   ========================================================================== */
.chat-input {
    padding: 16px 20px;
    background: var(--agentorie-bg-secondary);
    border-top: 1px solid var(--agentorie-border);
    flex-shrink: 0;
}

.chat-input .input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    background: var(--agentorie-bg-primary);
    border: 2px solid var(--agentorie-border);
    border-radius: 24px;
    padding: 8px 8px 8px 20px;
    transition: all 0.2s;
}

.chat-input .input-wrapper:focus-within {
    border-color: var(--agentorie-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.chat-input textarea {
    flex: 1;
    border: none !important;
    background: transparent !important;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    max-height: 100px;
    min-height: 24px;
    line-height: 1.5;
    color: var(--agentorie-text-primary);
    padding: 6px 0;
    margin: 0;
    outline: none !important;
    box-shadow: none !important;
}

.chat-input textarea::placeholder {
    color: var(--agentorie-text-tertiary);
}

.chat-input textarea:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.btn-send {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--agentorie-primary), var(--agentorie-primary-dark));
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-send:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

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

.btn-send .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.input-hint {
    margin-top: 10px;
    text-align: center;
}

.input-hint span {
    font-size: 11px;
    color: var(--agentorie-text-tertiary);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .conversations-sidebar {
        width: 280px;
    }
}

@media (max-width: 782px) {
    .agentorie-livechat-wrap {
        height: calc(100vh - 46px);
    }

    .livechat-container {
        flex-direction: column;
    }

    .conversations-sidebar {
        width: 100%;
        height: 180px;
        border-right: none;
        border-bottom: 1px solid var(--agentorie-border);
    }

    .conversations-list {
        display: flex;
        overflow-x: auto;
        padding: 8px;
        gap: 8px;
    }

    .conv-item {
        flex-shrink: 0;
        width: 180px;
        border-radius: 8px;
        border: 1px solid var(--agentorie-border);
    }

    .chat-actions {
        flex-wrap: wrap;
    }

    .msg {
        max-width: 85%;
    }

    .presence-text {
        display: none;
    }
}
/* Confirm Modal */
.agentorie-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.agentorie-confirm-modal.show {
    opacity: 1;
    visibility: visible;
}

.agentorie-confirm-modal .confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.agentorie-confirm-modal .confirm-box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease;
}

.agentorie-confirm-modal.show .confirm-box {
    transform: scale(1) translateY(0);
}

.agentorie-confirm-modal .confirm-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agentorie-confirm-modal .confirm-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #fff;
}

.agentorie-confirm-modal h3 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

.agentorie-confirm-modal p {
    margin: 0 0 24px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.agentorie-confirm-modal .confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.agentorie-confirm-modal .btn-cancel,
.agentorie-confirm-modal .btn-confirm {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.agentorie-confirm-modal .btn-cancel {
    background: #f1f5f9;
    color: #475569;
}

.agentorie-confirm-modal .btn-cancel:hover {
    background: #e2e8f0;
}

.agentorie-confirm-modal .btn-confirm {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
}

.agentorie-confirm-modal .btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}
/* Admin Limit Notice */
.admin-limit-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-left: 4px solid #f59e0b;
    color: #92400e;
    font-size: 13px;
    animation: slideDown 0.3s ease;
}

.admin-limit-notice .dashicons {
    color: #f59e0b;
    font-size: 18px;
}

.admin-limit-notice .notice-text {
    flex: 1;
}

.admin-limit-notice .notice-dismiss {
    background: none;
    border: none;
    color: #92400e;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.7;
}

.admin-limit-notice .notice-dismiss:hover {
    opacity: 1;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.chat-input.seat-limit-reached {
	position: relative;
}

.seat-limit-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.95);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	border-radius: 8px;
}

.seat-limit-message {
	text-align: center;
	padding: 20px;
}

.seat-limit-message .dashicons {
	font-size: 32px;
	width: 32px;
	height: 32px;
	color: #d63638;
	margin-bottom: 10px;
}

.seat-limit-message strong {
	display: block;
	font-size: 16px;
	color: #1d2327;
	margin-bottom: 5px;
}

.seat-limit-message p {
	color: #646970;
	margin: 0 0 15px 0;
}

.seat-limit-message .button {
	margin-top: 5px;
}

.chat-input.seat-limit-reached .input-wrapper {
	opacity: 0.3;
	pointer-events: none;
}

.chat-input.seat-limit-reached .input-hint {
	opacity: 0.3;
}
/* ===========================================
   Seat Limit Modal
   =========================================== */
.agentorie-seat-limit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.agentorie-seat-limit-modal.show {
    opacity: 1;
    visibility: visible;
}

.agentorie-seat-limit-modal .confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.agentorie-seat-limit-modal .seat-limit-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.agentorie-seat-limit-modal.show .seat-limit-box {
    transform: scale(1);
}

.agentorie-seat-limit-modal .seat-limit-icon {
    width: 60px;
    height: 60px;
    background: #fef2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.agentorie-seat-limit-modal .seat-limit-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #dc2626;
}

.agentorie-seat-limit-modal h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #1e293b;
}

.agentorie-seat-limit-modal p {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.agentorie-seat-limit-modal .seat-hint {
    font-size: 13px;
    color: #64748b;
    font-style: italic;
    margin-bottom: 12px;
}

.agentorie-seat-limit-modal .seat-info {
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #475569;
    margin-bottom: 20px;
}

.agentorie-seat-limit-modal .confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.agentorie-seat-limit-modal .btn-cancel {
    padding: 10px 20px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #64748b;
    transition: all 0.2s;
}

.agentorie-seat-limit-modal .btn-cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.agentorie-seat-limit-modal .btn-upgrade {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.agentorie-seat-limit-modal .btn-upgrade:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: #fff;
}
/* ==========================================================================
   Utility Classes
   ========================================================================== */

.agentorie-hidden {
	display: none;
}

/* System Messages (takeover/release notifications) */
.msg.system {
    text-align: center;
    margin: 16px 0;
}

.msg.system .msg-system-text {
    display: inline-block;
    padding: 8px 16px;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 13px;
    color: #64748b;
}

.msg.system.takeover-notice .msg-system-text {
    background: #dbeafe;
    color: #1e40af;
}

.msg.system.release-notice .msg-system-text {
    background: #fef3c7;
    color: #92400e;
}

.msg.system .msg-time {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}
