/* ═══════════════════════════════════════════
   HisarPin PWA — Aurora Gradient Design System
   Dark aurora bg, purple-magenta accent, Inter font
   ═══════════════════════════════════════════ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0c;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-sidebar: #111114;

    --text: #f5f5f5;
    --text-secondary: #9ca3af;
    --text-dim: #6b7280;
    --text-muted: #4b5563;

    --accent: #8b5cf6;
    --accent-light: #c4b5fd;
    --accent-glow: rgba(139, 92, 246, 0.18);
    --accent-gradient: linear-gradient(135deg, #8b5cf6, #be185d);

    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.12);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.12);

    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --radius-pill: 999px;

    --font: 'Inter', system-ui, -apple-system, sans-serif;

    /* Aurora gradient colors */
    --aurora-1: #0a0a0c;
    --aurora-2: #0d0d1a;
    --aurora-3: #1a1040;
    --aurora-4: #3b1d8e;
    --aurora-5: #6d28d9;
    --aurora-6: #9333ea;
    --aurora-7: #be185d;
    --aurora-8: #c084fc;
    --aurora-9: #d4a574;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    font-size: 13px;
}

.hidden {
    display: none !important;
}

/* ═══ LOGIN ═══ */
.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    position: relative;
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 28px;
    width: 340px;
    max-width: 100%;
    text-align: center;
}

.login-logo {
    margin-bottom: 12px;
}

.login-logo img {
    width: 72px;
    height: 72px;
    border-radius: 14px;
}

.login-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.login-subtitle {
    color: var(--text-dim);
    font-size: 12px;
    margin-bottom: 24px;
}

.login-error {
    color: var(--danger);
    font-size: 12px;
    margin-top: 10px;
    min-height: 18px;
}

.input-group {
    text-align: left;
    margin-bottom: 12px;
}

.input-group label {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-dim);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text);
    font-family: var(--font);
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s;
}

.input-group input:focus {
    border-color: var(--accent);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

/* ═══ HEADER ═══ */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-sidebar);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
}

.header-title {
    font-size: 14px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-badge {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 500;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-icon:hover {
    background: var(--bg-glass);
}

/* ═══ MAIN ═══ */
.main-content {
    padding: 16px;
    max-width: 480px;
    margin: 0 auto;
}

/* ═══ SCAN CARD ═══ */
.scan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    margin-bottom: 16px;
}

.scan-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.scan-card h2 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.scan-card p {
    color: var(--text-dim);
    font-size: 12px;
    margin-bottom: 18px;
}

/* ═══ CAMERA ═══ */
.camera-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
    background: #000;
    aspect-ratio: 4/3;
}

.camera-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.scan-frame {
    width: 180px;
    height: 180px;
    border: 2px solid var(--accent-light);
    border-radius: 16px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
    animation: scanPulse 2s ease-in-out infinite;
}

@keyframes scanPulse {

    0%,
    100% {
        border-color: var(--accent-light);
    }

    50% {
        border-color: var(--accent);
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45), 0 0 20px var(--accent-glow);
    }
}

.scan-hint {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    margin-top: 12px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.camera-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
}

/* ═══ MY BOARDS ═══ */
.boards-header h4 {
    font-size: 10px;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.board-row {
    display: flex;
    align-items: stretch;
    gap: 6px;
    margin-bottom: 5px;
}

.board-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text);
    font-family: var(--font);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.12s;
    text-align: left;
}

.board-item:hover {
    border-color: var(--border-hover);
    transform: translateX(3px);
}

.board-icon {
    font-size: 14px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.board-name {
    flex: 1;
    font-weight: 500;
}

.board-arrow {
    color: var(--accent-light);
    font-size: 12px;
}

.board-offline {
    opacity: 0.4;
    cursor: not-allowed;
}

.board-offline:hover {
    transform: none;
    border-color: var(--border);
}

.board-time {
    font-size: 10px;
    color: var(--accent-light);
    background: var(--accent-glow);
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
}

.btn-board-lock {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-xs);
    color: #f87171;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-board-lock:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.4);
    transform: scale(1.05);
}

.btn-board-lock:active {
    transform: scale(0.95);
}

.empty-msg {
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
    padding: 14px;
}

/* ═══ CODE CARD ═══ */
.code-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    margin-bottom: 14px;
}

.board-badge {
    display: inline-block;
    background: var(--accent-glow);
    color: var(--accent-light);
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 20px;
}

.totp-code {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 5px;
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
    transition: all 0.3s;
}

.totp-code.expired {
    color: var(--danger);
    animation: blink 0.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.3
    }
}

.totp-timer {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timer-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.timer-fill {
    height: 100%;
    background: var(--accent);
    border-radius: var(--radius-pill);
    transition: width 1s linear;
}

.timer-fill.low {
    background: var(--danger);
}

.timer-text {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 600;
    min-width: 32px;
    font-variant-numeric: tabular-nums;
}

.totp-hint {
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 10px;
}

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.12s;
    background: var(--bg-card);
    color: var(--text);
}

.btn:hover {
    background: var(--bg-glass);
    border-color: var(--border-hover);
}

.btn-primary {
    background: var(--accent);
    border-color: transparent;
    color: white;
}

.btn-primary:hover {
    background: #7c3aed;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    background: var(--bg-glass);
    border-color: var(--border);
}

.btn-outline {
    background: transparent;
    border-color: var(--border);
    width: 100%;
}

.btn-outline:hover {
    background: var(--bg-glass);
}

.btn-danger {
    background: var(--danger-bg);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.btn-lg {
    padding: 12px 24px;
    font-size: 14px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 11px;
}

.btn-full {
    width: 100%;
}

/* ═══ MODAL ═══ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    width: 340px;
    max-width: 92vw;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.modal-header h3 {
    font-size: 15px;
    font-weight: 600;
}

.modal-close {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dim);
    font-size: 13px;
}

.modal-close:hover {
    background: var(--danger-bg);
    color: var(--danger);
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 16px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-secondary);
}

.setting-section {
    margin-top: 14px;
}

.setting-section h4 {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.setting-board-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* ═══ TOAST ═══ */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 500;
    z-index: 300;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: toastIn 0.25s ease;
    white-space: nowrap;
}

@keyframes toastIn {
    from {
        transform: translateX(-50%) translateY(16px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* ═══ TAB NAVİGASYONU ═══ */
.tab-nav {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: 12px;
}

.tab-btn {
    flex: 1;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.tab-btn.active {
    background: var(--accent-glow);
    color: var(--accent-light);
}

.tab-btn:hover:not(.active) {
    color: var(--text-secondary);
}

.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-pill);
    margin-left: 6px;
    animation: badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* ═══ TAB CONTENT ═══ */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ═══ CHAT ═══ */
.chat-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.chat-header {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.chat-messages {
    min-height: 260px;
    max-height: 400px;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--text-muted);
    text-align: center;
}

.chat-empty span {
    font-size: 2.5rem;
    margin-bottom: 8px;
    opacity: 0.5;
}

.chat-empty p {
    font-size: 13px;
    margin: 2px 0;
}

.chat-empty-hint {
    font-size: 11px !important;
    color: var(--text-muted);
}

/* --- Mesaj Balonları --- */
.msg-bubble {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    animation: msgIn 0.25s ease;
    word-break: break-word;
}

@keyframes msgIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.msg-bubble.sent {
    align-self: flex-end;
    background: var(--accent);
    color: white;
    border-bottom-right-radius: 4px;
}

.msg-bubble.received {
    align-self: flex-start;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.msg-sender {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 3px;
}

.msg-bubble.sent .msg-sender {
    color: rgba(255, 255, 255, 0.7);
}

.msg-time {
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: right;
}

.msg-bubble.sent .msg-time {
    color: rgba(255, 255, 255, 0.5);
}

/* --- Dosya / Resim Mesajları --- */
.msg-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    margin-top: 4px;
}

.msg-bubble.sent .msg-file {
    background: rgba(255, 255, 255, 0.15);
}

.msg-file-icon {
    font-size: 1.2rem;
}

.msg-file-info {
    flex: 1;
    min-width: 0;
}

.msg-file-name {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-file-size {
    font-size: 10px;
    color: var(--text-dim);
}

.msg-bubble.sent .msg-file-size {
    color: rgba(255, 255, 255, 0.5);
}

.msg-download {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    color: inherit;
    transition: all 0.15s;
    text-decoration: none;
}

.msg-download:hover {
    background: rgba(255, 255, 255, 0.2);
}

.msg-image {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 4px;
    cursor: pointer;
}

/* --- Chat Input --- */
.chat-input-area {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 6px;
    border-top: 1px solid var(--border);
}

.chat-attach {
    flex-shrink: 0;
    font-size: 16px;
}

.chat-input {
    flex: 1;
    min-width: 0;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 8px 10px;
    color: var(--text);
    font-family: var(--font);
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s;
}

.chat-input:focus {
    border-color: var(--accent);
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-send {
    flex-shrink: 0;
    margin-right: 4px;
    padding: 7px 10px;
    font-size: 12px;
}

/* --- Dosya Önizleme --- */
.chat-file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--accent-glow);
    border-top: 1px solid var(--border);
    animation: msgIn 0.2s ease;
}

.file-preview-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.file-preview-icon {
    font-size: 1.2rem;
}

.file-preview-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.file-preview-size {
    font-size: 10px;
    color: var(--text-dim);
}

.file-preview-remove {
    color: var(--danger);
    font-size: 14px;
}

/* ═══ UPLOAD PROGRESS ═══ */
#upload-progress-bar {
    padding: 8px 12px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    margin: 6px 0;
}

#upload-progress-bar.hidden {
    display: none;
}

.upload-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.upload-progress-name {
    font-size: 11px;
    color: var(--text-secondary, #9CA3AF);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.upload-progress-pct {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-light, #A78BFA);
}

.upload-progress-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8B5CF6, #A78BFA);
    border-radius: 999px;
    transition: width 0.2s ease;
    position: relative;
}

.upload-progress-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: progressShimmer 1.5s infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}

/* ═══ Kamera İçi Başarı Animasyonu ═══ */
.camera-success-overlay {
    position: absolute;
    inset: 0;
    background: rgba(16, 185, 129, 0.18);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    animation: fadeIn 0.3s ease;
    border-radius: var(--radius);
}

.camera-success-overlay.hidden {
    display: none !important;
}

.camera-success-content {
    text-align: center;
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.camera-checkmark-svg {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 16px rgba(16, 185, 129, 0.5));
}

.camera-checkmark-circle {
    stroke: #10b981;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.camera-checkmark-path {
    stroke: #10b981;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: strokeCheck 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

.camera-success-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 6px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

@keyframes strokeCircle {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes strokeCheck {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ═══ DOSYA İNDİRME ═══ */
.msg-file-download {
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    border-radius: var(--radius-xs);
    padding: 6px 8px;
}

.msg-file-download:hover {
    background: rgba(139, 92, 246, 0.15);
    transform: translateY(-1px);
}

.msg-file-download:active {
    transform: scale(0.97);
}

.msg-download-btn {
    font-size: 0.72rem;
    color: var(--accent-light, #a78bfa);
    white-space: nowrap;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.12);
    transition: background 0.2s;
}

.msg-file-download:hover .msg-download-btn {
    background: rgba(139, 92, 246, 0.25);
}