/* Buttons */
.btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    user-select: none;
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-focus);
    text-decoration: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--accent-gradient);
    border: none;
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    filter: brightness(1.15);
    box-shadow: var(--accent-glow);
    border: none;
}

.btn-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.btn-danger:hover {
    background: var(--danger);
    color: #ffffff;
    border-color: var(--danger);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius);
}

/* Form Controls */
.input,
.select,
.textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: var(--border-focus);
    outline: none;
    box-shadow: var(--accent-glow);
}

.input::placeholder,
.textarea::placeholder {
    color: var(--text-muted);
}

.select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.textarea {
    min-height: 100px;
    resize: vertical;
}

.label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: capitalize;
}

.badge-low {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(0, 206, 201, 0.3);
}

.badge-medium {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(253, 203, 110, 0.3);
}

.badge-high {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.badge-urgent {
    background: var(--urgent-bg);
    color: var(--urgent);
    border: 1px solid rgba(231, 76, 60, 0.4);
    animation: pulse 2s infinite ease-in-out;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-focus);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

/* Avatar */
.avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    color: #ffffff;
    user-select: none;
    flex-shrink: 0;
}

/* Toast Container & Toasts */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 380px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-primary);
    font-size: 14px;
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-info {
    border-left: 4px solid var(--accent-primary);
}

.toast-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 2px;
}

.toast-close:hover {
    color: var(--text-primary);
}

/* Dropdown */
.dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    min-width: 200px;
    z-index: 1000;
    transform-origin: top right;
    animation: fadeIn 0.15s ease-out;
    overflow: hidden;
    padding: 6px 0;
}

.dropdown.hidden {
    display: none;
}

.dropdown-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
}

.dropdown-item:hover {
    background: var(--bg-glass-hover);
    color: var(--accent-secondary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--text-muted);
    opacity: 0.6;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state-description {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 400px;
    margin-bottom: 20px;
}
