/* 
   ============================================
   Global Toast System Styles
   ============================================ 
*/
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 10000;
    pointer-events: none;
}

.toast-notification {
    pointer-events: auto;
    min-width: 280px;
    max-width: 400px;
    background: rgba(13, 18, 32, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--color-text);
    box-shadow: var(--shadow-xl);
    animation: toastSlideIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    transition: transform 0.2s, opacity 0.2s;
}

.toast-notification.hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1.4;
}

.toast-success { border-left: 4px solid var(--color-success); }
.toast-error   { border-left: 4px solid var(--color-danger); }
.toast-info    { border-left: 4px solid var(--color-primary); }
.toast-warning { border-left: 4px solid var(--color-warning); }

@keyframes toastSlideIn {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

@media (max-width: 768px) {
    #toast-container {
        bottom: 1.5rem;
        right: 1rem;
        left: 1rem;
    }
    .toast-notification {
        min-width: 0;
        width: 100%;
    }
}

/* 
   ============================================
   Command Palette Styles
   ============================================ 
*/
#command-palette {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 11000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

#command-palette.open {
    display: flex;
}

.cp-box {
    width: 100%;
    max-width: 600px;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(124, 92, 246, 0.3);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(124, 92, 246, 0.2);
    overflow: hidden;
    animation: cpScaleIn 0.2s ease-out;
}

@keyframes cpScaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.cp-search-wrap {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 0.75rem;
}

.cp-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: var(--text-lg);
    outline: none;
    font-family: inherit;
}

.cp-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.cp-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
    text-decoration: none;
    color: var(--color-text-muted);
}

.cp-item:hover, .cp-item.selected {
    background: rgba(124, 92, 246, 0.15);
    color: var(--color-text);
}

.cp-item-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.cp-item-info {
    flex: 1;
}

.cp-item-title {
    font-size: var(--text-sm);
    font-weight: 600;
}

.cp-item-shortcut {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.cp-footer {
    padding: 0.75rem 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 1rem;
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

/* 
   ============================================
   Skeleton Loader Styles
   ============================================ 
*/
.skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

.skeleton-card {
    height: 140px;
    width: 100%;
}

.skeleton-line {
    height: 12px;
    margin-bottom: 8px;
    width: 100%;
}

.skeleton-line.short { width: 60%; }

.cp-group-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  padding: 8px 16px 4px;
}
