/* ───────────────────────────────────────────
 * InkedBooking v6 — Attendant Chat Widget
 * ─────────────────────────────────────────── */

/* ── Floating Bubble ── */
.inked-chat-bubble {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(229, 62, 62, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: inked-pulse 2s ease-in-out infinite;
}

.inked-chat-bubble:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(229, 62, 62, 0.5);
}

.inked-chat-bubble-hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

@keyframes inked-pulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(229, 62, 62, 0.4); }
    50% { box-shadow: 0 6px 30px rgba(229, 62, 62, 0.6); }
}

/* ── Chat Window ── */
.inked-chat-window {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 10000;
    width: 380px;
    max-width: calc(100vw - 24px);
    height: 550px;
    max-height: calc(100vh - 48px);
    background: #1a1a2e;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0) translateY(50px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
}

.inked-chat-window.inked-chat-open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* ── Header ── */
.inked-chat-header {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

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

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

.inked-chat-header-name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.inked-chat-header-status {
    color: rgba(255,255,255,0.8);
    font-size: 11px;
    font-family: 'Inter', sans-serif;
}

.inked-chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0;
    line-height: 1;
}

.inked-chat-close:hover { opacity: 1; }

/* ── Messages ── */
.inked-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.inked-msg {
    display: flex;
    max-width: 85%;
    animation: inked-msg-in 0.3s ease-out;
}

.inked-msg-user {
    align-self: flex-end;
}

.inked-msg-bot {
    align-self: flex-start;
}

.inked-msg-content {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
    word-break: break-word;
}

.inked-msg-user .inked-msg-content {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.inked-msg-bot .inked-msg-content {
    background: #2a2a4a;
    color: #e0e0e0;
    border-bottom-left-radius: 4px;
}

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

/* ── Typing Indicator ── */
.inked-chat-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    font-family: 'Inter', sans-serif;
}

.inked-typing-dot {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: inked-typing 1.4s ease-in-out infinite;
}

.inked-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.inked-typing-dot:nth-child(3) { animation-delay: 0.4s; }

.inked-typing-text {
    margin-left: 6px;
}

@keyframes inked-typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* ── Input Form ── */
.inked-chat-form {
    display: flex;
    padding: 12px 16px;
    gap: 8px;
    background: #16162b;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.inked-chat-input {
    flex: 1;
    background: #2a2a4a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 10px 14px;
    color: #fff;
    font-size: 13.5px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.inked-chat-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.inked-chat-input:focus {
    border-color: #e53e3e;
}

.inked-chat-send {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.inked-chat-send:hover { transform: scale(1.05); }
.inked-chat-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Powered By ── */
.inked-chat-powered {
    text-align: center;
    padding: 6px;
    font-size: 10px;
    color: rgba(255,255,255,0.2);
    font-family: 'Inter', sans-serif;
    background: #16162b;
    flex-shrink: 0;
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .inked-chat-window {
        bottom: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }

    .inked-chat-bubble {
        bottom: 16px;
        right: 16px;
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ───────────────────────────────────────────
 * Artist Settings Page
 * ─────────────────────────────────────────── */

.inked-settings-page {
    background: #0f0f1a;
    min-height: 100vh;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
}

.inked-settings-layout {
    display: flex;
    min-height: 100vh;
}

.inked-settings-main {
    flex: 1;
    padding: 32px 40px;
    max-width: 800px;
}

.inked-settings-main h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    color: #fff;
    margin-bottom: 32px;
}

.inked-settings-section {
    background: #1a1a2e;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.06);
}

.inked-settings-section h2 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
    font-family: 'Oswald', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.inked-settings-row {
    margin-bottom: 16px;
}

.inked-settings-row label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 6px;
    font-weight: 500;
}

.inked-settings-row input,
.inked-settings-row select,
.inked-settings-row textarea {
    width: 100%;
    background: #0f0f1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px 14px;
    color: #fff;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.inked-settings-row input:focus,
.inked-settings-row select:focus,
.inked-settings-row textarea:focus {
    border-color: #e53e3e;
}

.inked-settings-row textarea {
    min-height: 80px;
    resize: vertical;
}

.inked-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.inked-settings-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.inked-settings-btn {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.inked-settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(229, 62, 62, 0.3);
}

.inked-settings-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.inked-settings-saved {
    display: inline-block;
    margin-left: 12px;
    color: #48bb78;
    font-size: 13px;
    animation: inked-fade-in 0.3s;
}

@keyframes inked-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.inked-size-table {
    width: 100%;
    border-collapse: collapse;
}

.inked-size-table th,
.inked-size-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.inked-size-table th {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.inked-size-table input {
    width: 90px;
    padding: 6px 10px;
    font-size: 12px;
}

.inked-multiplier-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.inked-multiplier-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
}

.inked-multiplier-item label {
    font-size: 12px;
    margin-bottom: 0;
}

.inked-multiplier-item input {
    width: 70px;
    padding: 6px;
    font-size: 12px;
    text-align: center;
}

.inked-tone-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.inked-tone-btn {
    background: #0f0f1a;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px 20px;
    color: #e0e0e0;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.inked-tone-btn:hover {
    border-color: rgba(229, 62, 62, 0.5);
}

.inked-tone-btn.active {
    border-color: #e53e3e;
    background: rgba(229, 62, 62, 0.1);
    color: #fff;
}

.inked-day-checks {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.inked-day-check {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.inked-day-check input[type="checkbox"] {
    width: auto;
    accent-color: #e53e3e;
}

/* ── Mobile Settings ── */
@media (max-width: 768px) {
    .inked-settings-main {
        padding: 20px 16px;
    }

    .inked-settings-grid,
    .inked-settings-grid-3 {
        grid-template-columns: 1fr;
    }

    .inked-multiplier-grid {
        grid-template-columns: 1fr;
    }
}

/* ───────────────────────────────────────────
 * Dashboard Conversations Tab
 * ─────────────────────────────────────────── */

.inked-conv-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.inked-conv-stat {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.06);
}

.inked-conv-stat-num {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    font-family: 'Oswald', sans-serif;
}

.inked-conv-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

.inked-conv-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inked-conv-item {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.2s;
}

.inked-conv-item:hover {
    border-color: rgba(229, 62, 62, 0.3);
    background: #1e1e3a;
}

.inked-conv-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}

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

.inked-conv-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.inked-conv-preview {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inked-conv-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.inked-conv-time {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
}

.inked-conv-status {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 600;
}

.inked-conv-status-active { background: rgba(72, 187, 120, 0.15); color: #48bb78; }
.inked-conv-status-quoted { background: rgba(237, 137, 54, 0.15); color: #ed8936; }
.inked-conv-status-booked { background: rgba(66, 153, 225, 0.15); color: #4299e1; }
.inked-conv-status-completed { background: rgba(159, 122, 234, 0.15); color: #9f7aea; }
