/**
 * InitD.ai Agent Widget Styles
 */

/* Floating Chat Button */
.agent-chat-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.agent-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

.agent-chat-button.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.agent-chat-button svg {
    width: 24px;
    height: 24px;
}

.agent-notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #f56565;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Unread indicator dot */
.agent-chat-button.has-unread::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Proactive Toast */
.agent-proactive-toast {
    position: fixed;
    right: 20px;
    bottom: 96px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(102, 126, 234, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    z-index: 9997;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInUp 0.4s ease-out;
    max-width: 280px;
}

.agent-proactive-toast:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    background: rgba(102, 126, 234, 1);
}

.agent-proactive-toast.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat Drawer */
.agent-chat-drawer {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 480px;
    height: 680px;
    max-height: calc(100vh - 48px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.agent-chat-drawer.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Expanded State - Desktop Only */
@media (min-width: 769px) {
    .agent-chat-drawer.expanded {
        width: 520px;
        height: calc(100vh - 48px);
    }
}

/* Header */
.agent-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    flex-shrink: 0;
}

.agent-header-buttons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.agent-resize-button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s, transform 0.3s ease;
}

.agent-resize-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.agent-resize-button svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.agent-chat-drawer.expanded .agent-resize-button svg {
    transform: rotate(180deg);
}

.agent-chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

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

.agent-chat-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.agent-status {
    font-size: 12px;
    opacity: 0.9;
    display: block;
    margin-top: 2px;
}

/* Connection Status */
.agent-connection-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.9;
    margin-top: 2px;
}

.agent-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.agent-status-text {
    font-size: 12px;
}

.agent-status-connected .agent-status-dot {
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
    animation: pulse 2s infinite;
}

.agent-status-disconnected .agent-status-dot {
    background: #f59e0b;
    animation: pulse 2s infinite;
}

.agent-status-error .agent-status-dot {
    background: #ef4444;
}

.agent-close-button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
    flex-shrink: 0;
    min-width: 36px;
    min-height: 36px;
}

.agent-close-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.agent-close-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Messages Container */
.agent-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f7fafc;
}

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

.agent-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.agent-chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.agent-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Messages */
.agent-message {
    display: flex;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.agent-message-user {
    justify-content: flex-end;
}

.agent-message-ai {
    justify-content: flex-start;
}

.agent-message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    line-height: 1.5;
    font-size: 14px;
}

.agent-message-user .agent-message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.agent-message-ai .agent-message-content {
    background: white;
    color: #2d3748;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.agent-message-content p {
    margin: 0;
}

.agent-message-content a {
    color: inherit;
    text-decoration: underline;
    font-weight: 500;
}

.agent-message-user .agent-message-content a {
    color: white;
}

.agent-message-ai .agent-message-content a {
    color: #667eea;
}

/* Followup Questions */
.agent-followups {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.agent-followup-button {
    padding: 10px 14px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #2d3748;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.agent-followup-button:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateX(2px);
}

.agent-followup-button:active {
    transform: translateX(0);
}

/* Typing Indicator */
.agent-typing-dots {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.agent-typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a0aec0;
    animation: typingDot 1.4s infinite;
}

.agent-typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.agent-typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* Input Container */
.agent-chat-input-container {
    padding: 16px 20px;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.agent-chat-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.agent-chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
    background: #f7fafc;
}

.agent-chat-input:focus {
    border-color: #667eea;
    background: white;
}

.agent-send-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.agent-send-button:hover {
    transform: scale(1.1);
}

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

/* Powered By Section */
.agent-powered-by {
    text-align: center;
    padding: 8px 0 0 0;
    font-size: 12px;
    color: #718096;
}

.agent-powered-by a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.agent-powered-by a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Option C: Enhanced Label + Chips Grid + Animations */
.ai-ask--enhanced {
    margin-top: 1.5rem;
}

.ai-ask__label {
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.35rem;
    text-align: center;
    opacity: 0;
    transform: translateY(6px);
    animation: aiFadeUp 0.5s ease forwards 0.15s;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.ai-ask__label strong {
    color: #22c55e;
    font-weight: 700;
}

/* Chips in a centered, responsive row */
.ai-ask__chips--grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.6rem;
    max-width: 1100px;
    margin: 0.75rem auto 0;
}

/* Elevation + readability kept from previous pass, add hover lift */
.ai-chip {
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    padding: 0.5rem 0.85rem;
    border-radius: 24px;
    cursor: pointer;
    transition: transform 0.08s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    flex: 0 1 auto;
    white-space: nowrap;
}

.ai-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.ai-chip:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Staggered reveal for chips */
.ai-chip {
    opacity: 0;
    transform: translateY(8px);
}

.ai-chip.ai-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Entrance animation */
@keyframes aiFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Container */
.agent-form-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
    transition: opacity 0.3s ease;
}

.agent-form-header {
    margin-bottom: 20px;
}

.agent-form-header h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.agent-form-description {
    margin: 0;
    font-size: 14px;
    color: #718096;
}

/* Form Fields */
.agent-dynamic-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.agent-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.agent-form-field label {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
}

.agent-form-required {
    color: #ef4444;
}

.agent-form-field input[type="text"],
.agent-form-field input[type="email"],
.agent-form-field textarea,
.agent-form-field select {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #2d3748;
    background: #f7fafc;
    transition: all 0.2s;
}

.agent-form-field input:focus,
.agent-form-field textarea:focus,
.agent-form-field select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.agent-form-field textarea {
    resize: vertical;
    min-height: 80px;
}

.agent-form-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232d3748' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Checkbox Field */
.agent-form-field-checkbox {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.agent-form-field-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.agent-form-field-checkbox label {
    margin: 0;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
}

/* Validation States */
.agent-form-invalid {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

.agent-form-error {
    font-size: 12px;
    color: #ef4444;
    min-height: 18px;
    display: block;
}

/* Privacy Note */
.agent-form-privacy {
    font-size: 12px;
    color: #718096;
    margin: 8px 0 0 0;
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

/* Submit Button */
.agent-form-submit {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.agent-form-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.agent-form-submit:active:not(:disabled) {
    transform: translateY(0);
}

.agent-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .ai-chip {
        font-size: 0.85rem;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        text-align: center;
        line-height: 1.3;
        padding: 0.6rem 0.75rem;
        flex: 0 1 auto;
        max-width: 100%;
    }

    .ai-ask__chips--grid {
        gap: 0.5rem;
        padding: 0 0.5rem;
        justify-content: center;
    }

    .ai-ask__label {
        font-size: 0.95rem;
        padding: 0 0.5rem;
        line-height: 1.4;
    }

    .agent-form-container {
        padding: 16px;
        margin: 12px 0;
    }

    .agent-form-header h4 {
        font-size: 16px;
    }

    .agent-dynamic-form {
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .agent-chat-drawer {
        width: calc(100vw - 32px);
        height: calc(100vh - 32px);
        bottom: 16px;
        right: 16px;
        max-height: calc(100vh - 32px);
    }

    .agent-chat-button {
        bottom: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
    }

    .agent-proactive-toast {
        right: 16px;
        bottom: 84px;
        font-size: 13px;
        padding: 10px 14px;
        max-width: calc(100vw - 96px);
    }
}

@media (max-width: 480px) {
    .agent-chat-drawer {
        width: 100vw;
        height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
        max-height: 100vh;
        max-height: 100dvh;
        /* Use dynamic viewport height for mobile */
    }

    .agent-chat-header {
        border-radius: 0;
        padding: 16px;
        gap: 8px;
    }

    .agent-chat-title h3 {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .agent-chat-title>div {
        min-width: 0;
        overflow: hidden;
    }

    .agent-status {
        font-size: 11px;
    }

    .agent-avatar {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }

    .agent-close-button {
        margin-left: 8px;
    }
}

/* Calendar Container */
.agent-calendar-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
    transition: opacity 0.3s ease;
}

.agent-calendar-header {
    margin-bottom: 20px;
}

.agent-calendar-header h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.agent-calendar-description {
    margin: 0;
    font-size: 15px;
    color: #4a5568;
    font-weight: 500;
    padding: 8px 12px;
    background: #f0f9ff;
    border-left: 3px solid #667eea;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.agent-calendar-description::before {
    content: "ℹ️";
    font-size: 16px;
}

/* Calendar Widget */
.agent-calendar {
    margin: 0;
    font-size: 14px;
}

/* Override FullCalendar styles to match design */
.agent-calendar .fc {
    font-family: inherit;
}

.agent-calendar .fc-theme-standard td,
.agent-calendar .fc-theme-standard th {
    border-color: #e2e8f0;
}

.agent-calendar .fc-theme-standard .fc-scrollgrid {
    border-color: #e2e8f0;
}

.agent-calendar .fc-col-header-cell {
    background: #f7fafc;
    font-weight: 600;
    color: #2d3748 !important;
    padding: 8px 4px;
}

.agent-calendar .fc-col-header-cell-cushion {
    color: #2d3748 !important;
}

.agent-calendar .fc-daygrid-day-number,
.agent-calendar .fc-col-header-cell a {
    color: #2d3748 !important;
    text-decoration: none;
}

.agent-calendar .fc-timegrid-slot {
    height: 3em;
}

.agent-calendar .fc-timegrid-slot-label {
    font-size: 12px;
    color: #718096;
}

.agent-calendar .fc-button {
    background: #667eea;
    border-color: #667eea;
    font-size: 13px;
    padding: 6px 12px;
    text-transform: capitalize;
}

.agent-calendar .fc-button:hover {
    background: #5568d3;
    border-color: #5568d3;
}

.agent-calendar .fc-button:disabled {
    opacity: 0.5;
}

.agent-calendar .fc-button-primary:not(:disabled):active,
.agent-calendar .fc-button-primary:not(:disabled).fc-button-active {
    background: #764ba2;
    border-color: #764ba2;
}

.agent-calendar .fc-toolbar-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

/* Available slot styling with enhanced interactivity */
.agent-calendar .fc-timegrid-event.available-slot {
    border: 2px solid #667eea;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.agent-calendar .fc-timegrid-event.available-slot:hover {
    background: #c7d2fe !important;
    border-color: #5568d3;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Add "Click to book" hint on available slots */
.agent-calendar .fc-timegrid-event.available-slot::after {
    content: "📅 Click to book";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 600;
    color: #667eea;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
}

.agent-calendar .fc-timegrid-event.available-slot:hover::after {
    opacity: 1;
}

/* Pulse animation for available slots */
@keyframes availableSlotPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0);
    }
}

.agent-calendar .fc-timegrid-event.available-slot {
    animation: availableSlotPulse 2s infinite;
}

/* Available slots - make them blue and clickable */
.agent-calendar .fc-timegrid-event.available-slot {
    background: #e3f2fd !important;
    border: 2px solid #667eea;
    cursor: pointer !important;
    position: relative;
    z-index: 1;
}

/* Unavailable slots (default empty slots) have normal calendar appearance */
.agent-calendar .fc-timegrid-slot {
    position: relative;
}

/* Highlight selection area */
.agent-calendar .fc-highlight {
    background: rgba(102, 126, 234, 0.15) !important;
}

/* Calendar Legend */
.agent-calendar-legend {
    display: flex;
    gap: 16px;
    margin: 16px 0;
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
    font-size: 13px;
    flex-wrap: wrap;
}

.agent-calendar-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
    font-weight: 500;
}

.agent-calendar-legend-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
}

.agent-calendar-legend-box.available {
    background: #e3f2fd;
    border: 2px solid #667eea;
}

.agent-calendar-legend-box.unavailable {
    background: #e2e8f0;
    border: 1px solid #cbd5e0;
    background: repeating-linear-gradient(45deg,
            #e2e8f0,
            #e2e8f0 5px,
            rgba(160, 174, 192, 0.5) 5px,
            rgba(160, 174, 192, 0.5) 10px);
}

/* Empty State */
.agent-calendar-empty {
    padding: 40px 20px;
    text-align: center;
    color: #718096;
}

.agent-calendar-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.agent-calendar-empty h5 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #4a5568;
}

.agent-calendar-empty p {
    margin: 0;
    font-size: 14px;
}

/* Calendar Error Message */
.agent-calendar-error {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fef2f2;
    border-left: 3px solid #ef4444;
    border-radius: 6px;
    font-size: 13px;
    color: #dc2626;
    animation: slideIn 0.3s ease-out;
}

/* Calendar Confirmation Dialog */
.agent-calendar-confirm {
    margin-top: 16px;
    padding: 16px;
    background: #f0f9ff;
    border: 2px solid #667eea;
    border-radius: 12px;
    animation: slideIn 0.3s ease-out;
}

.agent-calendar-confirm-content h5 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.agent-calendar-confirm-content p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #4a5568;
}

.agent-calendar-time {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #667eea !important;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    margin: 8px 0 16px 0 !important;
}

.agent-calendar-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.agent-calendar-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.agent-calendar-btn-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.agent-calendar-btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.agent-calendar-btn-cancel {
    background: white;
    color: #718096;
    border: 1px solid #e2e8f0;
}

.agent-calendar-btn-cancel:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

/* Mobile Calendar Adjustments */
@media (max-width: 640px) {
    .agent-calendar-container {
        padding: 16px;
        margin: 12px 0;
    }

    .agent-calendar-header h4 {
        font-size: 16px;
    }

    .agent-calendar .fc-toolbar {
        flex-direction: column;
        gap: 8px;
    }

    .agent-calendar .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
    }

    .agent-calendar .fc-toolbar-title {
        font-size: 14px;
    }

    .agent-calendar .fc-button {
        font-size: 12px;
        padding: 5px 10px;
    }

    .agent-calendar .fc-timegrid-slot {
        height: 2.5em;
    }

    .agent-calendar .fc-timegrid-slot-label {
        font-size: 11px;
    }

    .agent-calendar-actions {
        flex-direction: column;
    }

    .agent-calendar-btn {
        width: 100%;
    }
}

/* Error Message Styling for Calendar/Forms */
.agent-message-error .agent-message-content {
    background: #fef2f2 !important;
    border-left: 3px solid #ef4444;
    color: #dc2626 !important;
}

.agent-retry-button {
    background: #667eea !important;
    color: white !important;
    border-color: #667eea !important;
}

.agent-retry-button:hover {
    background: #5568d3 !important;
    border-color: #5568d3 !important;
}