/* =====================================================
   LOCAL STORAGE VIEWER - MODERN AESTHETIC DESIGN
   ===================================================== */

/* =====================
   MODAL CONTAINER
   ===================== */
.ls-modal {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(12px);
    z-index: 6000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: lsFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ls-modal.active {
    display: flex;
}

@keyframes lsFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(12px);
    }
}

/* Modal Content Container */
.ls-modal > .modal-content {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    border-radius: 24px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 10px 30px rgba(108, 92, 231, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.6);
    animation: lsSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 95vw;
    max-width: 1600px;
    height: 90vh;
    max-height: 900px;
}

@keyframes lsSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =====================
   MODAL HEADER
   ===================== */
.ls-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
    position: relative;
    gap: 24px;
}

.ls-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6C5CE7, #a855f7, #ec4899, #f59e0b);
    background-size: 300% 100%;
    animation: lsGradientShift 4s ease infinite;
}

@keyframes lsGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ls-header-left {
    flex-shrink: 0;
}

.ls-modal-header h2,
.ls-modal-header h3 {
    margin: 0;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.ls-modal-header h2 i,
.ls-modal-header h3 i {
    background: linear-gradient(135deg, #6C5CE7, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
    animation: lsIconPulse 2s ease-in-out infinite;
}

@keyframes lsIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Header Stats Container */
.ls-header-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
}

/* Individual Header Stat */
.ls-header-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ls-header-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #6C5CE7;
}

.ls-header-stat i {
    font-size: 0.9rem;
    color: #6C5CE7;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 6px;
}

.ls-header-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.ls-header-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Usage stat with progress bar */
.ls-header-stat--usage {
    gap: 10px;
    min-width: 140px;
}

.ls-header-progress {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.ls-header-progress-bar {
    width: 80px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.ls-header-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ls-header-progress-label {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
}

/* Modal Actions Container */
.ls-modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Close Button */
.ls-modal-close {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.35);
    position: relative;
    overflow: hidden;
}

.ls-modal-close::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.ls-modal-close:hover::before {
    width: 100%;
    height: 100%;
}

.ls-modal-close:hover {
    background: linear-gradient(135deg, #ee5a5a 0%, #dc2626 100%);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

.ls-modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* =====================
   CONTROLS SECTION
   ===================== */
.ls-controls {
    display: flex;
    gap: 16px;
    padding: 20px 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    align-items: center;
}

/* Search Wrapper */
.ls-search-wrapper {
    flex: 1;
    min-width: 280px;
    position: relative;
}

/* Search Input */
.ls-search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ls-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.ls-search-wrapper:focus-within .ls-search-icon {
    color: #6C5CE7;
    transform: translateY(-50%) scale(1.1);
}

.ls-search-input:focus {
    outline: none;
    border-color: #6C5CE7;
    box-shadow: 
        0 0 0 4px rgba(108, 92, 231, 0.12),
        0 4px 16px rgba(108, 92, 231, 0.1);
    background-position: 16px center;
}

.ls-search-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

/* Control Buttons */
.ls-btn {
    padding: 14px 22px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #6C5CE7 0%, #8b5cf6 100%);
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(108, 92, 231, 0.3);
    position: relative;
    overflow: hidden;
}

.ls-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.ls-btn:hover::before {
    left: 100%;
}

.ls-btn:hover {
    background: linear-gradient(135deg, #5b4cdb 0%, #7c3aed 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.4);
}

.ls-btn:active {
    transform: translateY(-1px);
}

.ls-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.ls-btn:hover i {
    transform: scale(1.15);
}

/* Controls Group */
.ls-controls-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Button Variants */
.ls-btn-refresh {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.ls-btn-refresh:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
}

.ls-btn-refresh:hover i {
    animation: lsSpin 0.8s ease;
}

@keyframes lsSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ls-btn-export {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.ls-btn-export:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.ls-btn-export:hover i {
    animation: lsBounce 0.6s ease;
}

@keyframes lsBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.ls-btn-import {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.ls-btn-import:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.ls-btn-import:hover i {
    animation: lsUpload 0.6s ease;
}

@keyframes lsUpload {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.ls-btn-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.ls-btn-delete:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.ls-btn-delete:hover i {
    animation: lsShake 0.5s ease;
}

@keyframes lsShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px) rotate(-5deg); }
    75% { transform: translateX(3px) rotate(5deg); }
}

/* =====================
   STATS SECTION (Now in Header)
   ===================== */
.ls-stats {
    display: none; /* Hidden - stats moved to header */
}

/* Legacy stat styles - kept for reference but not used */
.ls-stat-item,
.ls-stat-icon,
.ls-stat-info,
.ls-stat-progress,
.ls-progress-bar,
.ls-progress-fill,
.ls-stat-sublabel {
    display: none;
}

/* Legacy stat styles - removed, now in header */

/* =====================
   CONTENT GRID
   ===================== */
.ls-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
}

/* Key Cards */
.ls-key-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    border-radius: 20px;
    padding: 22px 18px;
    border: 2px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.04);
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.ls-key-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6C5CE7, #a855f7, #ec4899);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ls-key-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ls-key-card:hover {
    border-color: #6C5CE7;
    box-shadow: 
        0 16px 40px rgba(108, 92, 231, 0.15),
        0 6px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-6px) scale(1.02);
}

.ls-key-card:hover::before {
    opacity: 1;
}

.ls-key-card:hover::after {
    opacity: 1;
}

.ls-key-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
    word-break: break-word;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 44px;
    position: relative;
    z-index: 1;
}

.ls-key-name i {
    color: #6C5CE7;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6C5CE7, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.ls-key-card:hover .ls-key-name i {
    transform: scale(1.2) rotate(10deg);
}

.ls-key-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.ls-key-type,
.ls-key-size,
.ls-key-count {
    font-size: 0.7rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.ls-key-card:hover .ls-key-type,
.ls-key-card:hover .ls-key-size,
.ls-key-card:hover .ls-key-count {
    background: #e2e8f0;
}

.ls-key-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    position: relative;
    z-index: 1;
}

.ls-key-actions .ls-btn {
    flex: 1;
    padding: 10px 14px;
    font-size: 0.85rem;
    border-radius: 12px;
    justify-content: center;
    min-height: 40px;
}

/* =====================
   TYPE BADGES
   ===================== */
.ls-badge,
.ls-key-type {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.ls-badge.object,
.ls-key-type[data-type="object"] {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.ls-badge.array,
.ls-key-type[data-type="array"] {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border: 1px solid #86efac;
}

.ls-badge.string,
.ls-key-type[data-type="string"] {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fcd34d;
}

.ls-badge.number,
.ls-key-type[data-type="number"] {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #7c3aed;
    border: 1px solid #c4b5fd;
}

.ls-badge.boolean,
.ls-key-type[data-type="boolean"] {
    background: linear-gradient(135deg, #ffe4e6 0%, #fecdd3 100%);
    color: #be123c;
    border: 1px solid #fda4af;
}

.ls-badge.null,
.ls-key-type[data-type="null"] {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    border: 1px solid #cbd5e1;
}

/* =====================
   MODAL BODY (VIEW/EDIT)
   ===================== */
.ls-modal-body {
    padding: 24px 28px;
    background: #ffffff;
}

/* View Modal Styles */
.ls-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 14px;
}

.ls-view-key {
    font-weight: 700;
    font-size: 1.15rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
    word-break: break-all;
    padding: 12px 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.ls-view-key i {
    color: #6C5CE7;
    font-size: 1.2rem;
}

.ls-view-actions {
    display: flex;
    gap: 10px;
}

.ls-btn-copy {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: 0 4px 14px rgba(100, 116, 139, 0.3);
}

.ls-btn-copy:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    box-shadow: 0 8px 24px rgba(100, 116, 139, 0.4);
}

.ls-btn-copy:hover i {
    animation: lsCopyBounce 0.4s ease;
}

@keyframes lsCopyBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.ls-view-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 24px;
    border-radius: 16px;
    overflow-x: auto;
    max-height: 400px;
    border: 2px solid #334155;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ls-view-content pre {
    margin: 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #e2e8f0;
    white-space: pre-wrap;
    word-break: break-all;
}

.ls-view-json pre {
    color: #a5b4fc;
}

/* JSON Syntax Highlighting */
.ls-view-content .json-key {
    color: #93c5fd;
}

.ls-view-content .json-string {
    color: #86efac;
}

.ls-view-content .json-number {
    color: #fcd34d;
}

.ls-view-content .json-boolean {
    color: #f9a8d4;
}

.ls-view-content .json-null {
    color: #94a3b8;
}

/* =====================
   EDIT MODAL STYLES
   ===================== */
.ls-edit-header {
    margin-bottom: 18px;
}

.ls-edit-key {
    font-weight: 700;
    font-size: 1.15rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    border: 2px solid #fcd34d;
}

.ls-edit-key i {
    color: #d97706;
    font-size: 1.2rem;
}

.ls-edit-form textarea {
    width: 100%;
    padding: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 320px;
    background: #f8fafc;
    color: #1e293b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.ls-edit-form textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 
        0 0 0 4px rgba(245, 158, 11, 0.12),
        inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.ls-edit-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 18px;
}

.ls-edit-info {
    margin-top: 18px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    font-size: 0.9rem;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #fcd34d;
}

.ls-edit-info i {
    font-size: 1.1rem;
}

.ls-view-header h3 {
    margin: 0 0 12px 0;
    color: #1e293b;
    font-size: 1.2rem;
}

.ls-view-meta {
    display: flex;
    gap: 14px;
    align-items: center;
}

.ls-type-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ls-edit-textarea {
    width: 100%;
    padding: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    min-height: 200px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.ls-edit-textarea:focus {
    outline: none;
    border-color: #6C5CE7;
    box-shadow: 
        0 0 0 4px rgba(108, 92, 231, 0.12),
        inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* =====================
   EMPTY STATE
   ===================== */
.ls-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 40px;
    color: #94a3b8;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 24px;
    border: 3px dashed #cbd5e1;
    margin: 20px;
    transition: all 0.3s ease;
}

.ls-empty:hover {
    border-color: #6C5CE7;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.ls-empty i {
    font-size: 5rem;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #94a3b8, #64748b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: lsFloat 3s ease-in-out infinite;
}

@keyframes lsFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.ls-empty p {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
    color: #64748b;
}

.ls-empty-hint {
    font-size: 1.05rem !important;
    margin-top: 12px !important;
    opacity: 0.8;
    color: #94a3b8;
    font-weight: 500;
}

/* =====================
   SCROLLBAR STYLING
   ===================== */
.ls-content::-webkit-scrollbar {
    width: 10px;
}

.ls-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.ls-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 10px;
    border: 2px solid #f1f5f9;
}

.ls-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

/* =====================
   RESPONSIVE DESIGN
   ===================== */
@media (max-width: 1024px) {
    .ls-content {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .ls-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ls-search-input {
        min-width: 100%;
    }
    
    .ls-btn {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .ls-modal {
        padding: 10px;
    }
    
    .ls-modal-header {
        padding: 18px 20px;
    }
    
    .ls-modal-header h2,
    .ls-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .ls-controls {
        padding: 16px 20px;
    }
    
    .ls-stats {
        flex-wrap: wrap;
        justify-content: center;
        padding: 16px 20px;
    }
    
    .ls-stat-item {
        min-width: 100px;
        padding: 12px 18px;
    }
    
    .ls-stat-value {
        font-size: 1.5rem;
    }
    
    .ls-content {
        grid-template-columns: 1fr;
        padding: 16px 20px;
    }
    
    .ls-key-card {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .ls-modal-header h2,
    .ls-modal-header h3 {
        font-size: 1.1rem;
        gap: 8px;
    }
    
    .ls-modal-close {
        width: 40px;
        height: 40px;
    }
    
    .ls-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .ls-btn span {
        display: none;
    }
    
    .ls-key-actions .ls-btn {
        padding: 10px;
    }
}

/* =====================
   LOADING ANIMATION
   ===================== */
.ls-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
    grid-column: 1 / -1;
}

.ls-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #6C5CE7;
    border-radius: 50%;
    animation: lsSpin 1s linear infinite;
}

@keyframes lsSpin {
    to { transform: rotate(360deg); }
}

/* =====================
   SUCCESS/ERROR TOASTS
   ===================== */
.ls-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    border-radius: 14px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: lsSlideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 7000;
}

.ls-toast.success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.ls-toast.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.ls-toast.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

@keyframes lsSlideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ls-toast.hide {
    animation: lsSlideOutRight 0.3s ease forwards;
}

@keyframes lsSlideOutRight {
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}
