/* Components - Buttons, Badges, Cards, Skeletons, Empty States, Toast Notifications */

/* Loading Skeletons */
.skeleton {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.05) 25%, 
        rgba(255,255,255,0.1) 50%, 
        rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }
.skeleton-text.long { width: 100%; }

.skeleton-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.skeleton-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.skeleton-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.skeleton-content {
    flex: 1;
}

/* Panel Transitions */
.panel-content {
    animation: panelFadeIn 0.3s ease;
}

/* Button Styles */
.google-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: inherit;
}

.google-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.google-btn:active {
    transform: translateY(0);
}

.google-btn svg {
    width: 18px;
    height: 18px;
}

.logout-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: inherit;
    flex-shrink: 0;
    white-space: nowrap;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}

.close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.2s;
    color: rgba(255, 255, 255, 0.7);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.save-btn,
.cancel-btn {
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.cancel-btn {
    background: #f0f0f0;
    color: #666;
}

.cancel-btn:hover {
    background: #e0e0e0;
}

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

.save-btn:hover {
    transform: scale(1.02);
}

/* Badge Styles */
.demo-badge {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
}

.inbox-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff7b7b;
    color: #1a1a2e;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255, 123, 123, 0.4);
}

.count-badge {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 4px;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.count-badge.bump {
    animation: countBump 0.3s ease;
}

/* Empty States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

.empty-state-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    max-width: 250px;
    line-height: 1.5;
}

.empty-state-action {
    margin-top: 16px;
    padding: 10px 20px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    color: #a5b4fc;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.empty-state-action:hover {
    background: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #fff;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
    animation: toastIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), toastOut 0.3s ease 2.7s forwards;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.success {
    background: rgba(52, 199, 89, 0.1);
    border-color: rgba(52, 199, 89, 0.3);
    color: #4ade80;
}

.toast.undo {
    pointer-events: auto;
    cursor: pointer;
}

.toast.undo:hover {
    transform: scale(1.02);
}

.undo-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
}

/* Checkbox Styles */
.checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox:hover {
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.2);
    transform: scale(1.1);
}

.checkbox.checked {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border-color: #4ade80;
    animation: checkPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.checkbox svg {
    width: 12px;
    height: 12px;
    stroke: white;
    opacity: 0;
    stroke-width: 3;
}

.checkbox.checked svg {
    opacity: 1;
}

/* Delete Button */
.delete-btn {
    opacity: 0;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.task-item:hover .delete-btn {
    opacity: 1;
}

.delete-btn:hover {
    background: rgba(255, 123, 123, 0.2);
    transform: scale(1.1);
}

.delete-btn svg {
    width: 16px;
    height: 16px;
    stroke: #ff7b7b;
}

/* Restore Button */
.restore-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.restore-btn:hover {
    background: rgba(99, 102, 241, 0.4);
    color: #fff;
}

/* Clear Completed Button */
.clear-completed-btn {
    margin-top: 12px;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 500;
    background: transparent;
    color: #999;
    border: 1px dashed #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.clear-completed-btn:hover {
    background: #fee;
    border-color: #e53935;
    color: #e53935;
}

/* Coming Soon Popup */
.coming-soon-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.coming-soon-popup {
    background: rgba(30, 30, 50, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px 48px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    animation: popupSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

.coming-soon-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coming-soon-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.coming-soon-btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: inherit;
}

.coming-soon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.coming-soon-btn:active {
    transform: translateY(0);
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
